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

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

Issue 883073008: Accessor functions should have no prototype property (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use bitshift Created 5 years, 10 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/preparser.h ('k') | src/x87/full-codegen-x87.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // the frame (that is done below). 136 // the frame (that is done below).
137 FrameScope frame_scope(masm_, StackFrame::MANUAL); 137 FrameScope frame_scope(masm_, StackFrame::MANUAL);
138 138
139 info->set_prologue_offset(masm_->pc_offset()); 139 info->set_prologue_offset(masm_->pc_offset());
140 __ Prologue(info->IsCodePreAgingActive()); 140 __ Prologue(info->IsCodePreAgingActive());
141 info->AddNoFrameRange(0, masm_->pc_offset()); 141 info->AddNoFrameRange(0, masm_->pc_offset());
142 142
143 { Comment cmnt(masm_, "[ Allocate locals"); 143 { Comment cmnt(masm_, "[ Allocate locals");
144 int locals_count = info->scope()->num_stack_slots(); 144 int locals_count = info->scope()->num_stack_slots();
145 // Generators allocate locals, if any, in context slots. 145 // Generators allocate locals, if any, in context slots.
146 DCHECK(!info->function()->is_generator() || locals_count == 0); 146 DCHECK(!IsGeneratorFunction(info->function()->kind()) || locals_count == 0);
147 if (locals_count == 1) { 147 if (locals_count == 1) {
148 __ PushRoot(Heap::kUndefinedValueRootIndex); 148 __ PushRoot(Heap::kUndefinedValueRootIndex);
149 } else if (locals_count > 1) { 149 } else if (locals_count > 1) {
150 if (locals_count >= 128) { 150 if (locals_count >= 128) {
151 Label ok; 151 Label ok;
152 __ movp(rcx, rsp); 152 __ movp(rcx, rsp);
153 __ subp(rcx, Immediate(locals_count * kPointerSize)); 153 __ subp(rcx, Immediate(locals_count * kPointerSize));
154 __ CompareRoot(rcx, Heap::kRealStackLimitRootIndex); 154 __ CompareRoot(rcx, Heap::kRealStackLimitRootIndex);
155 __ j(above_equal, &ok, Label::kNear); 155 __ j(above_equal, &ok, Label::kNear);
156 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); 156 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION);
(...skipping 5158 matching lines...) Expand 10 before | Expand all | Expand 10 after
5315 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5315 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5316 Assembler::target_address_at(call_target_address, 5316 Assembler::target_address_at(call_target_address,
5317 unoptimized_code)); 5317 unoptimized_code));
5318 return OSR_AFTER_STACK_CHECK; 5318 return OSR_AFTER_STACK_CHECK;
5319 } 5319 }
5320 5320
5321 5321
5322 } } // namespace v8::internal 5322 } } // namespace v8::internal
5323 5323
5324 #endif // V8_TARGET_ARCH_X64 5324 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/preparser.h ('k') | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698