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

Side by Side Diff: src/runtime/runtime-debug.cc

Issue 906463002: add support for all can read interceptors (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/objects-inl.h ('k') | test/cctest/test-api-interceptors.cc » ('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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // args[0]: object 239 // args[0]: object
240 // args[1]: index 240 // args[1]: index
241 RUNTIME_FUNCTION(Runtime_DebugIndexedInterceptorElementValue) { 241 RUNTIME_FUNCTION(Runtime_DebugIndexedInterceptorElementValue) {
242 HandleScope scope(isolate); 242 HandleScope scope(isolate);
243 DCHECK(args.length() == 2); 243 DCHECK(args.length() == 2);
244 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); 244 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
245 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); 245 RUNTIME_ASSERT(obj->HasIndexedInterceptor());
246 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); 246 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]);
247 Handle<Object> result; 247 Handle<Object> result;
248 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 248 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
249 isolate, result, JSObject::GetElementWithInterceptor(obj, obj, index)); 249 isolate, result,
250 JSObject::GetElementWithInterceptor(obj, obj, index, true));
250 return *result; 251 return *result;
251 } 252 }
252 253
253 254
254 RUNTIME_FUNCTION(Runtime_CheckExecutionState) { 255 RUNTIME_FUNCTION(Runtime_CheckExecutionState) {
255 SealHandleScope shs(isolate); 256 SealHandleScope shs(isolate);
256 DCHECK(args.length() == 1); 257 DCHECK(args.length() == 1);
257 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); 258 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]);
258 RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id)); 259 RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id));
259 return isolate->heap()->true_value(); 260 return isolate->heap()->true_value();
(...skipping 2549 matching lines...) Expand 10 before | Expand all | Expand 10 after
2809 return Smi::FromInt(isolate->debug()->is_active()); 2810 return Smi::FromInt(isolate->debug()->is_active());
2810 } 2811 }
2811 2812
2812 2813
2813 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { 2814 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) {
2814 UNIMPLEMENTED(); 2815 UNIMPLEMENTED();
2815 return NULL; 2816 return NULL;
2816 } 2817 }
2817 } 2818 }
2818 } // namespace v8::internal 2819 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | test/cctest/test-api-interceptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698