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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | no next file » | 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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 __ CmpObjectType(ecx, FIRST_JS_RECEIVER_TYPE, ecx); 113 __ CmpObjectType(ecx, FIRST_JS_RECEIVER_TYPE, ecx);
114 __ Assert(above_equal, kSloppyFunctionExpectsJSReceiverReceiver); 114 __ Assert(above_equal, kSloppyFunctionExpectsJSReceiverReceiver);
115 } 115 }
116 116
117 // Open a frame scope to indicate that there is a frame on the stack. The 117 // Open a frame scope to indicate that there is a frame on the stack. The
118 // MANUAL indicates that the scope shouldn't actually generate code to set up 118 // MANUAL indicates that the scope shouldn't actually generate code to set up
119 // the frame (that is done below). 119 // the frame (that is done below).
120 FrameScope frame_scope(masm_, StackFrame::MANUAL); 120 FrameScope frame_scope(masm_, StackFrame::MANUAL);
121 121
122 info->set_prologue_offset(masm_->pc_offset()); 122 info->set_prologue_offset(masm_->pc_offset());
123 __ Prologue(info->IsCodePreAgingActive()); 123 __ Prologue(info->GeneratePreagedPrologue());
124 124
125 { Comment cmnt(masm_, "[ Allocate locals"); 125 { Comment cmnt(masm_, "[ Allocate locals");
126 int locals_count = info->scope()->num_stack_slots(); 126 int locals_count = info->scope()->num_stack_slots();
127 // Generators allocate locals, if any, in context slots. 127 // Generators allocate locals, if any, in context slots.
128 DCHECK(!IsGeneratorFunction(literal()->kind()) || locals_count == 0); 128 DCHECK(!IsGeneratorFunction(literal()->kind()) || locals_count == 0);
129 if (locals_count == 1) { 129 if (locals_count == 1) {
130 __ push(Immediate(isolate()->factory()->undefined_value())); 130 __ push(Immediate(isolate()->factory()->undefined_value()));
131 } else if (locals_count > 1) { 131 } else if (locals_count > 1) {
132 if (locals_count >= 128) { 132 if (locals_count >= 128) {
133 Label ok; 133 Label ok;
(...skipping 4605 matching lines...) Expand 10 before | Expand all | Expand 10 after
4739 Assembler::target_address_at(call_target_address, 4739 Assembler::target_address_at(call_target_address,
4740 unoptimized_code)); 4740 unoptimized_code));
4741 return OSR_AFTER_STACK_CHECK; 4741 return OSR_AFTER_STACK_CHECK;
4742 } 4742 }
4743 4743
4744 4744
4745 } // namespace internal 4745 } // namespace internal
4746 } // namespace v8 4746 } // namespace v8
4747 4747
4748 #endif // V8_TARGET_ARCH_X87 4748 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698