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

Side by Side Diff: src/arm64/lithium-codegen-arm64.cc

Issue 1029643002: Move CompilationInfo::this_has_uses to HGraph::this_has_uses. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-12
Patch Set: Created 5 years, 9 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/arm/lithium-codegen-arm.cc ('k') | src/compiler.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 DCHECK(is_generating()); 656 DCHECK(is_generating());
657 657
658 if (info()->IsOptimizing()) { 658 if (info()->IsOptimizing()) {
659 ProfileEntryHookStub::MaybeCallEntryHook(masm_); 659 ProfileEntryHookStub::MaybeCallEntryHook(masm_);
660 660
661 // TODO(all): Add support for stop_t FLAG in DEBUG mode. 661 // TODO(all): Add support for stop_t FLAG in DEBUG mode.
662 662
663 // Sloppy mode functions and builtins need to replace the receiver with the 663 // Sloppy mode functions and builtins need to replace the receiver with the
664 // global proxy when called as functions (without an explicit receiver 664 // global proxy when called as functions (without an explicit receiver
665 // object). 665 // object).
666 if (info_->this_has_uses() && is_sloppy(info_->language_mode()) && 666 if (graph()->this_has_uses() && is_sloppy(info_->language_mode()) &&
667 !info_->is_native()) { 667 !info_->is_native()) {
668 Label ok; 668 Label ok;
669 int receiver_offset = info_->scope()->num_parameters() * kXRegSize; 669 int receiver_offset = info_->scope()->num_parameters() * kXRegSize;
670 __ Peek(x10, receiver_offset); 670 __ Peek(x10, receiver_offset);
671 __ JumpIfNotRoot(x10, Heap::kUndefinedValueRootIndex, &ok); 671 __ JumpIfNotRoot(x10, Heap::kUndefinedValueRootIndex, &ok);
672 672
673 __ Ldr(x10, GlobalObjectMemOperand()); 673 __ Ldr(x10, GlobalObjectMemOperand());
674 __ Ldr(x10, FieldMemOperand(x10, GlobalObject::kGlobalProxyOffset)); 674 __ Ldr(x10, FieldMemOperand(x10, GlobalObject::kGlobalProxyOffset));
675 __ Poke(x10, receiver_offset); 675 __ Poke(x10, receiver_offset);
676 676
(...skipping 5393 matching lines...) Expand 10 before | Expand all | Expand 10 after
6070 Handle<ScopeInfo> scope_info = instr->scope_info(); 6070 Handle<ScopeInfo> scope_info = instr->scope_info();
6071 __ Push(scope_info); 6071 __ Push(scope_info);
6072 __ Push(ToRegister(instr->function())); 6072 __ Push(ToRegister(instr->function()));
6073 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6073 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6074 RecordSafepoint(Safepoint::kNoLazyDeopt); 6074 RecordSafepoint(Safepoint::kNoLazyDeopt);
6075 } 6075 }
6076 6076
6077 6077
6078 6078
6079 } } // namespace v8::internal 6079 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698