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

Side by Side Diff: src/runtime.cc

Issue 478043006: Rewrite StoreIC handling using the LookupIterator. Continued from patch 494153002 (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/objects.cc ('k') | src/stub-cache.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/accessors.h" 10 #include "src/accessors.h"
(...skipping 10882 matching lines...) Expand 10 before | Expand all | Expand 10 after
10893 isolate->stack_guard()->RequestDebugBreak(); 10893 isolate->stack_guard()->RequestDebugBreak();
10894 return isolate->heap()->undefined_value(); 10894 return isolate->heap()->undefined_value();
10895 } 10895 }
10896 10896
10897 10897
10898 static Handle<Object> DebugLookupResultValue(LookupIterator* it, 10898 static Handle<Object> DebugLookupResultValue(LookupIterator* it,
10899 bool* has_caught = NULL) { 10899 bool* has_caught = NULL) {
10900 for (; it->IsFound(); it->Next()) { 10900 for (; it->IsFound(); it->Next()) {
10901 switch (it->state()) { 10901 switch (it->state()) {
10902 case LookupIterator::NOT_FOUND: 10902 case LookupIterator::NOT_FOUND:
10903 case LookupIterator::TRANSITION:
10903 UNREACHABLE(); 10904 UNREACHABLE();
10904 case LookupIterator::ACCESS_CHECK: 10905 case LookupIterator::ACCESS_CHECK:
10905 // Ignore access checks. 10906 // Ignore access checks.
10906 break; 10907 break;
10907 case LookupIterator::INTERCEPTOR: 10908 case LookupIterator::INTERCEPTOR:
10908 case LookupIterator::JSPROXY: 10909 case LookupIterator::JSPROXY:
10909 return it->isolate()->factory()->undefined_value(); 10910 return it->isolate()->factory()->undefined_value();
10910 case LookupIterator::PROPERTY: 10911 case LookupIterator::PROPERTY:
10911 if (!it->HasProperty()) continue; 10912 if (!it->HasProperty()) continue;
10912 switch (it->property_kind()) { 10913 switch (it->property_kind()) {
(...skipping 4730 matching lines...) Expand 10 before | Expand all | Expand 10 after
15643 } 15644 }
15644 return NULL; 15645 return NULL;
15645 } 15646 }
15646 15647
15647 15648
15648 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15649 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15649 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15650 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15650 } 15651 }
15651 15652
15652 } } // namespace v8::internal 15653 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698