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

Side by Side Diff: src/execution.cc

Issue 1221303019: Fix keyed access of primitive objects in the runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Created 5 years, 5 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/api.cc ('k') | src/ic/ic.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/messages.h" 10 #include "src/messages.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 544
545 MaybeHandle<Object> Execution::ToDetailString( 545 MaybeHandle<Object> Execution::ToDetailString(
546 Isolate* isolate, Handle<Object> obj) { 546 Isolate* isolate, Handle<Object> obj) {
547 RETURN_NATIVE_CALL(to_detail_string, { obj }); 547 RETURN_NATIVE_CALL(to_detail_string, { obj });
548 } 548 }
549 549
550 550
551 MaybeHandle<Object> Execution::ToObject( 551 MaybeHandle<Object> Execution::ToObject(
552 Isolate* isolate, Handle<Object> obj) { 552 Isolate* isolate, Handle<Object> obj) {
553 if (obj->IsSpecObject()) return obj; 553 if (obj->IsSpecObject()) return obj;
554 // TODO(verwaest): Use Object::ToObject but throw an exception on failure.
554 RETURN_NATIVE_CALL(to_object, { obj }); 555 RETURN_NATIVE_CALL(to_object, { obj });
555 } 556 }
556 557
557 558
558 MaybeHandle<Object> Execution::ToInteger( 559 MaybeHandle<Object> Execution::ToInteger(
559 Isolate* isolate, Handle<Object> obj) { 560 Isolate* isolate, Handle<Object> obj) {
560 RETURN_NATIVE_CALL(to_integer, { obj }); 561 RETURN_NATIVE_CALL(to_integer, { obj });
561 } 562 }
562 563
563 564
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 659
659 isolate_->counters()->stack_interrupts()->Increment(); 660 isolate_->counters()->stack_interrupts()->Increment();
660 isolate_->counters()->runtime_profiler_ticks()->Increment(); 661 isolate_->counters()->runtime_profiler_ticks()->Increment();
661 isolate_->runtime_profiler()->OptimizeNow(); 662 isolate_->runtime_profiler()->OptimizeNow();
662 663
663 return isolate_->heap()->undefined_value(); 664 return isolate_->heap()->undefined_value();
664 } 665 }
665 666
666 } // namespace internal 667 } // namespace internal
667 } // namespace v8 668 } // namespace v8
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698