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

Side by Side Diff: src/execution.cc

Issue 607913002: Report promise reject with no handler (behind a flag). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: more comments Created 6 years, 2 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/execution.h ('k') | src/factory.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 #include "src/execution.h" 5 #include "src/execution.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 RETURN_NATIVE_CALL(to_int32, { obj }); 532 RETURN_NATIVE_CALL(to_int32, { obj });
533 } 533 }
534 534
535 535
536 MaybeHandle<Object> Execution::NewDate(Isolate* isolate, double time) { 536 MaybeHandle<Object> Execution::NewDate(Isolate* isolate, double time) {
537 Handle<Object> time_obj = isolate->factory()->NewNumber(time); 537 Handle<Object> time_obj = isolate->factory()->NewNumber(time);
538 RETURN_NATIVE_CALL(create_date, { time_obj }); 538 RETURN_NATIVE_CALL(create_date, { time_obj });
539 } 539 }
540 540
541 541
542 MaybeHandle<Object> Execution::PromiseHasRejectHandler(Isolate* isolate,
543 Handle<Object> promise) {
544 return Call(isolate, isolate->promise_has_reject_handler(), promise, 0, NULL);
545 }
546
547
542 #undef RETURN_NATIVE_CALL 548 #undef RETURN_NATIVE_CALL
543 549
544 550
545 MaybeHandle<JSRegExp> Execution::NewJSRegExp(Handle<String> pattern, 551 MaybeHandle<JSRegExp> Execution::NewJSRegExp(Handle<String> pattern,
546 Handle<String> flags) { 552 Handle<String> flags) {
547 Isolate* isolate = pattern->GetIsolate(); 553 Isolate* isolate = pattern->GetIsolate();
548 Handle<JSFunction> function = Handle<JSFunction>( 554 Handle<JSFunction> function = Handle<JSFunction>(
549 isolate->native_context()->regexp_function()); 555 isolate->native_context()->regexp_function());
550 Handle<Object> re_obj; 556 Handle<Object> re_obj;
551 ASSIGN_RETURN_ON_EXCEPTION( 557 ASSIGN_RETURN_ON_EXCEPTION(
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 } 706 }
701 707
702 isolate_->counters()->stack_interrupts()->Increment(); 708 isolate_->counters()->stack_interrupts()->Increment();
703 isolate_->counters()->runtime_profiler_ticks()->Increment(); 709 isolate_->counters()->runtime_profiler_ticks()->Increment();
704 isolate_->runtime_profiler()->OptimizeNow(); 710 isolate_->runtime_profiler()->OptimizeNow();
705 711
706 return isolate_->heap()->undefined_value(); 712 return isolate_->heap()->undefined_value();
707 } 713 }
708 714
709 } } // namespace v8::internal 715 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.h ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698