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

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

Issue 490533002: Use LookupIterator to transition to accessors (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/lookup.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 namespace v8 { 10 namespace v8 {
(...skipping 11 matching lines...) Expand all
22 if (!check_derived() && 22 if (!check_derived() &&
23 !(check_hidden() && next->map()->is_hidden_prototype())) { 23 !(check_hidden() && next->map()->is_hidden_prototype())) {
24 return NULL; 24 return NULL;
25 } 25 }
26 26
27 return next; 27 return next;
28 } 28 }
29 29
30 30
31 LookupIterator::State LookupIterator::LookupInHolder(Map* map) { 31 LookupIterator::State LookupIterator::LookupInHolder(Map* map) {
32 STATIC_ASSERT(INTERCEPTOR == BEFORE_PROPERTY);
32 DisallowHeapAllocation no_gc; 33 DisallowHeapAllocation no_gc;
33 switch (state_) { 34 switch (state_) {
34 case NOT_FOUND: 35 case NOT_FOUND:
35 if (map->IsJSProxyMap()) { 36 if (map->IsJSProxyMap()) {
36 return JSPROXY; 37 return JSPROXY;
37 } 38 }
38 if (check_access_check() && map->is_access_check_needed()) { 39 if (check_access_check() && map->is_access_check_needed()) {
39 return ACCESS_CHECK; 40 return ACCESS_CHECK;
40 } 41 }
41 // Fall through. 42 // Fall through.
(...skipping 17 matching lines...) Expand all
59 case JSPROXY: 60 case JSPROXY:
60 UNREACHABLE(); 61 UNREACHABLE();
61 } 62 }
62 UNREACHABLE(); 63 UNREACHABLE();
63 return state_; 64 return state_;
64 } 65 }
65 } 66 }
66 } // namespace v8::internal 67 } // namespace v8::internal
67 68
68 #endif // V8_LOOKUP_INL_H_ 69 #endif // V8_LOOKUP_INL_H_
OLDNEW
« no previous file with comments | « src/lookup.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698