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

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

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding proxy trap strings Created 5 years, 1 month 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
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/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/debug/debug-evaluate.h" 9 #include "src/debug/debug-evaluate.h"
10 #include "src/debug/debug-frames.h" 10 #include "src/debug/debug-frames.h"
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 return *isolate->factory()->NewJSArrayWithElements(result); 1442 return *isolate->factory()->NewJSArrayWithElements(result);
1443 } 1443 }
1444 1444
1445 1445
1446 // Find the effective prototype object as returned by __proto__. 1446 // Find the effective prototype object as returned by __proto__.
1447 // args[0]: the object to find the prototype for. 1447 // args[0]: the object to find the prototype for.
1448 RUNTIME_FUNCTION(Runtime_DebugGetPrototype) { 1448 RUNTIME_FUNCTION(Runtime_DebugGetPrototype) {
1449 HandleScope shs(isolate); 1449 HandleScope shs(isolate);
1450 DCHECK(args.length() == 1); 1450 DCHECK(args.length() == 1);
1451 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); 1451 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
1452 return *Object::GetPrototype(isolate, obj); 1452 Handle<Object> prototype;
1453 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, prototype,
Jakob Kummerow 2015/11/12 12:04:24 Yeah, I think this is going to cause trouble, beca
Camillo Bruni 2015/11/12 20:20:55 added.
1454 Object::GetPrototype(isolate, obj));
1455 return *prototype;
1453 } 1456 }
1454 1457
1455 1458
1456 // Patches script source (should be called upon BeforeCompile event). 1459 // Patches script source (should be called upon BeforeCompile event).
1457 RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) { 1460 RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) {
1458 HandleScope scope(isolate); 1461 HandleScope scope(isolate);
1459 DCHECK(args.length() == 2); 1462 DCHECK(args.length() == 2);
1460 1463
1461 CONVERT_ARG_HANDLE_CHECKED(JSValue, script_wrapper, 0); 1464 CONVERT_ARG_HANDLE_CHECKED(JSValue, script_wrapper, 0);
1462 CONVERT_ARG_HANDLE_CHECKED(String, source, 1); 1465 CONVERT_ARG_HANDLE_CHECKED(String, source, 1);
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
1736 return *isolate->factory()->undefined_value(); 1739 return *isolate->factory()->undefined_value();
1737 } 1740 }
1738 1741
1739 1742
1740 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1743 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1741 UNIMPLEMENTED(); 1744 UNIMPLEMENTED();
1742 return NULL; 1745 return NULL;
1743 } 1746 }
1744 } // namespace internal 1747 } // namespace internal
1745 } // namespace v8 1748 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698