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

Side by Side Diff: src/ppc/full-codegen-ppc.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/objects-inl.h ('k') | src/preparser.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 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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_PPC 7 #if V8_TARGET_ARCH_PPC
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 __ addi(ip, ip, Operand(prologue_offset)); 151 __ addi(ip, ip, Operand(prologue_offset));
152 } 152 }
153 info->set_prologue_offset(prologue_offset); 153 info->set_prologue_offset(prologue_offset);
154 __ Prologue(info->IsCodePreAgingActive(), prologue_offset); 154 __ Prologue(info->IsCodePreAgingActive(), prologue_offset);
155 info->AddNoFrameRange(0, masm_->pc_offset()); 155 info->AddNoFrameRange(0, masm_->pc_offset());
156 156
157 { 157 {
158 Comment cmnt(masm_, "[ Allocate locals"); 158 Comment cmnt(masm_, "[ Allocate locals");
159 int locals_count = info->scope()->num_stack_slots(); 159 int locals_count = info->scope()->num_stack_slots();
160 // Generators allocate locals, if any, in context slots. 160 // Generators allocate locals, if any, in context slots.
161 DCHECK(!info->function()->is_generator() || locals_count == 0); 161 DCHECK(!IsGeneratorFunction(info->function()->kind()) || locals_count == 0);
162 if (locals_count > 0) { 162 if (locals_count > 0) {
163 if (locals_count >= 128) { 163 if (locals_count >= 128) {
164 Label ok; 164 Label ok;
165 __ Add(ip, sp, -(locals_count * kPointerSize), r0); 165 __ Add(ip, sp, -(locals_count * kPointerSize), r0);
166 __ LoadRoot(r5, Heap::kRealStackLimitRootIndex); 166 __ LoadRoot(r5, Heap::kRealStackLimitRootIndex);
167 __ cmpl(ip, r5); 167 __ cmpl(ip, r5);
168 __ bc_short(ge, &ok); 168 __ bc_short(ge, &ok);
169 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); 169 __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION);
170 __ bind(&ok); 170 __ bind(&ok);
171 } 171 }
(...skipping 5113 matching lines...) Expand 10 before | Expand all | Expand 10 after
5285 return ON_STACK_REPLACEMENT; 5285 return ON_STACK_REPLACEMENT;
5286 } 5286 }
5287 5287
5288 DCHECK(interrupt_address == 5288 DCHECK(interrupt_address ==
5289 isolate->builtins()->OsrAfterStackCheck()->entry()); 5289 isolate->builtins()->OsrAfterStackCheck()->entry());
5290 return OSR_AFTER_STACK_CHECK; 5290 return OSR_AFTER_STACK_CHECK;
5291 } 5291 }
5292 } 5292 }
5293 } // namespace v8::internal 5293 } // namespace v8::internal
5294 #endif // V8_TARGET_ARCH_PPC 5294 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/preparser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698