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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.cc

Issue 1577193003: Change the CompilationInfo::IsCodePreAgingActive() predicate to CompilationInfo::GeneratePreagingPr… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment cleanup. Created 4 years, 11 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/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 __ GetObjectType(a2, a2, a2); 132 __ GetObjectType(a2, a2, a2);
133 __ Check(ge, kSloppyFunctionExpectsJSReceiverReceiver, a2, 133 __ Check(ge, kSloppyFunctionExpectsJSReceiverReceiver, a2,
134 Operand(FIRST_JS_RECEIVER_TYPE)); 134 Operand(FIRST_JS_RECEIVER_TYPE));
135 } 135 }
136 136
137 // Open a frame scope to indicate that there is a frame on the stack. The 137 // Open a frame scope to indicate that there is a frame on the stack. The
138 // MANUAL indicates that the scope shouldn't actually generate code to set up 138 // MANUAL indicates that the scope shouldn't actually generate code to set up
139 // the frame (that is done below). 139 // the frame (that is done below).
140 FrameScope frame_scope(masm_, StackFrame::MANUAL); 140 FrameScope frame_scope(masm_, StackFrame::MANUAL);
141 info->set_prologue_offset(masm_->pc_offset()); 141 info->set_prologue_offset(masm_->pc_offset());
142 __ Prologue(info->IsCodePreAgingActive()); 142 __ Prologue(info->GeneratePreagedPrologue());
143 143
144 { Comment cmnt(masm_, "[ Allocate locals"); 144 { Comment cmnt(masm_, "[ Allocate locals");
145 int locals_count = info->scope()->num_stack_slots(); 145 int locals_count = info->scope()->num_stack_slots();
146 // Generators allocate locals, if any, in context slots. 146 // Generators allocate locals, if any, in context slots.
147 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0); 147 DCHECK(!IsGeneratorFunction(info->literal()->kind()) || locals_count == 0);
148 if (locals_count > 0) { 148 if (locals_count > 0) {
149 if (locals_count >= 128) { 149 if (locals_count >= 128) {
150 Label ok; 150 Label ok;
151 __ Dsubu(t1, sp, Operand(locals_count * kPointerSize)); 151 __ Dsubu(t1, sp, Operand(locals_count * kPointerSize));
152 __ LoadRoot(a2, Heap::kRealStackLimitRootIndex); 152 __ LoadRoot(a2, Heap::kRealStackLimitRootIndex);
(...skipping 4692 matching lines...) Expand 10 before | Expand all | Expand 10 after
4845 reinterpret_cast<uint64_t>( 4845 reinterpret_cast<uint64_t>(
4846 isolate->builtins()->OsrAfterStackCheck()->entry())); 4846 isolate->builtins()->OsrAfterStackCheck()->entry()));
4847 return OSR_AFTER_STACK_CHECK; 4847 return OSR_AFTER_STACK_CHECK;
4848 } 4848 }
4849 4849
4850 4850
4851 } // namespace internal 4851 } // namespace internal
4852 } // namespace v8 4852 } // namespace v8
4853 4853
4854 #endif // V8_TARGET_ARCH_MIPS64 4854 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698