Commit 7b3c9af9 authored by ager@chromium.org's avatar ager@chromium.org

Fix lint issue.

TBR=bak@chromium.org
Review URL: http://codereview.chromium.org/140066

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2242 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 8de05cef
...@@ -1168,7 +1168,7 @@ class DescriptorLookupCache { ...@@ -1168,7 +1168,7 @@ class DescriptorLookupCache {
// Lookup descriptor index for (map, name). // Lookup descriptor index for (map, name).
// If absent, kAbsent is returned. // If absent, kAbsent is returned.
static int Lookup(DescriptorArray* array, String* name) { static int Lookup(DescriptorArray* array, String* name) {
if(!StringShape(name).IsSymbol()) return kAbsent; if (!StringShape(name).IsSymbol()) return kAbsent;
int index = Hash(array, name); int index = Hash(array, name);
Key& key = keys_[index]; Key& key = keys_[index];
if ((key.array == array) && (key.name == name)) return results_[index]; if ((key.array == array) && (key.name == name)) return results_[index];
...@@ -1178,7 +1178,7 @@ class DescriptorLookupCache { ...@@ -1178,7 +1178,7 @@ class DescriptorLookupCache {
// Update an element in the cache. // Update an element in the cache.
static void Update(DescriptorArray* array, String* name, int result) { static void Update(DescriptorArray* array, String* name, int result) {
ASSERT(result != kAbsent); ASSERT(result != kAbsent);
if(StringShape(name).IsSymbol()) { if (StringShape(name).IsSymbol()) {
int index = Hash(array, name); int index = Hash(array, name);
Key& key = keys_[index]; Key& key = keys_[index];
key.array = array; key.array = array;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment