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

Side by Side Diff: src/execution.cc

Issue 799853003: Use proper ToLength() operation in %ArrayConcat() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tests for toString/valueOf throwing user exception Created 6 years 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/execution.h ('k') | src/runtime/runtime-array.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/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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 RETURN_NATIVE_CALL(to_uint32, { obj }); 538 RETURN_NATIVE_CALL(to_uint32, { obj });
539 } 539 }
540 540
541 541
542 MaybeHandle<Object> Execution::ToInt32( 542 MaybeHandle<Object> Execution::ToInt32(
543 Isolate* isolate, Handle<Object> obj) { 543 Isolate* isolate, Handle<Object> obj) {
544 RETURN_NATIVE_CALL(to_int32, { obj }); 544 RETURN_NATIVE_CALL(to_int32, { obj });
545 } 545 }
546 546
547 547
548 MaybeHandle<Object> Execution::ToLength(
549 Isolate* isolate, Handle<Object> obj) {
550 RETURN_NATIVE_CALL(to_length, { obj });
551 }
552
553
548 MaybeHandle<Object> Execution::NewDate(Isolate* isolate, double time) { 554 MaybeHandle<Object> Execution::NewDate(Isolate* isolate, double time) {
549 Handle<Object> time_obj = isolate->factory()->NewNumber(time); 555 Handle<Object> time_obj = isolate->factory()->NewNumber(time);
550 RETURN_NATIVE_CALL(create_date, { time_obj }); 556 RETURN_NATIVE_CALL(create_date, { time_obj });
551 } 557 }
552 558
553 559
554 #undef RETURN_NATIVE_CALL 560 #undef RETURN_NATIVE_CALL
555 561
556 562
557 MaybeHandle<JSRegExp> Execution::NewJSRegExp(Handle<String> pattern, 563 MaybeHandle<JSRegExp> Execution::NewJSRegExp(Handle<String> pattern,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 } 718 }
713 719
714 isolate_->counters()->stack_interrupts()->Increment(); 720 isolate_->counters()->stack_interrupts()->Increment();
715 isolate_->counters()->runtime_profiler_ticks()->Increment(); 721 isolate_->counters()->runtime_profiler_ticks()->Increment();
716 isolate_->runtime_profiler()->OptimizeNow(); 722 isolate_->runtime_profiler()->OptimizeNow();
717 723
718 return isolate_->heap()->undefined_value(); 724 return isolate_->heap()->undefined_value();
719 } 725 }
720 726
721 } } // namespace v8::internal 727 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.h ('k') | src/runtime/runtime-array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698