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

Side by Side Diff: src/runtime.cc

Issue 462413003: Move Promise tracking from debug to isolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: move assertions 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/isolate.cc ('k') | src/v8threads.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 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 5477 matching lines...) Expand 10 before | Expand all | Expand 10 after
5488 debug->ClearStepOut(); 5488 debug->ClearStepOut();
5489 debug->FloodWithOneShot(callback); 5489 debug->FloodWithOneShot(callback);
5490 return isolate->heap()->undefined_value(); 5490 return isolate->heap()->undefined_value();
5491 } 5491 }
5492 5492
5493 5493
5494 RUNTIME_FUNCTION(Runtime_DebugPushPromise) { 5494 RUNTIME_FUNCTION(Runtime_DebugPushPromise) {
5495 DCHECK(args.length() == 1); 5495 DCHECK(args.length() == 1);
5496 HandleScope scope(isolate); 5496 HandleScope scope(isolate);
5497 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0); 5497 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0);
5498 isolate->debug()->PushPromise(promise); 5498 isolate->PushPromise(promise);
5499 return isolate->heap()->undefined_value(); 5499 return isolate->heap()->undefined_value();
5500 } 5500 }
5501 5501
5502 5502
5503 RUNTIME_FUNCTION(Runtime_DebugPopPromise) { 5503 RUNTIME_FUNCTION(Runtime_DebugPopPromise) {
5504 DCHECK(args.length() == 0); 5504 DCHECK(args.length() == 0);
5505 SealHandleScope shs(isolate); 5505 SealHandleScope shs(isolate);
5506 isolate->debug()->PopPromise(); 5506 isolate->PopPromise();
5507 return isolate->heap()->undefined_value(); 5507 return isolate->heap()->undefined_value();
5508 } 5508 }
5509 5509
5510 5510
5511 RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) { 5511 RUNTIME_FUNCTION(Runtime_DebugPromiseEvent) {
5512 DCHECK(args.length() == 1); 5512 DCHECK(args.length() == 1);
5513 HandleScope scope(isolate); 5513 HandleScope scope(isolate);
5514 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0); 5514 CONVERT_ARG_HANDLE_CHECKED(JSObject, data, 0);
5515 isolate->debug()->OnPromiseEvent(data); 5515 isolate->debug()->OnPromiseEvent(data);
5516 return isolate->heap()->undefined_value(); 5516 return isolate->heap()->undefined_value();
(...skipping 10113 matching lines...) Expand 10 before | Expand all | Expand 10 after
15630 } 15630 }
15631 return NULL; 15631 return NULL;
15632 } 15632 }
15633 15633
15634 15634
15635 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15635 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15636 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15636 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15637 } 15637 }
15638 15638
15639 } } // namespace v8::internal 15639 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/v8threads.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698