Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: src/lookup-inl.h

Issue 1198343004: Merge AddFastElement and AddFastDoubleElement (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_LOOKUP_INL_H_ 5 #ifndef V8_LOOKUP_INL_H_
6 #define V8_LOOKUP_INL_H_ 6 #define V8_LOOKUP_INL_H_
7 7
8 #include "src/lookup.h" 8 #include "src/lookup.h"
9 9
10 #include "src/elements.h"
11
10 namespace v8 { 12 namespace v8 {
11 namespace internal { 13 namespace internal {
12 14
13 15
14 JSReceiver* LookupIterator::NextHolder(Map* map) { 16 JSReceiver* LookupIterator::NextHolder(Map* map) {
15 DisallowHeapAllocation no_gc; 17 DisallowHeapAllocation no_gc;
16 if (map->prototype()->IsNull()) return NULL; 18 if (map->prototype()->IsNull()) return NULL;
17 19
18 JSReceiver* next = JSReceiver::cast(map->prototype()); 20 JSReceiver* next = JSReceiver::cast(map->prototype());
19 DCHECK(!next->map()->IsGlobalObjectMap() || 21 DCHECK(!next->map()->IsGlobalObjectMap() ||
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 default: 132 default:
131 return NOT_FOUND; 133 return NOT_FOUND;
132 } 134 }
133 UNREACHABLE(); 135 UNREACHABLE();
134 return state_; 136 return state_;
135 } 137 }
136 } 138 }
137 } // namespace v8::internal 139 } // namespace v8::internal
138 140
139 #endif // V8_LOOKUP_INL_H_ 141 #endif // V8_LOOKUP_INL_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698