| OLD | NEW |
| 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/base/bits.h" | 7 #include "src/base/bits.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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // Store dynamic frame alignment state in the first local. | 208 // Store dynamic frame alignment state in the first local. |
| 209 int offset = JavaScriptFrameConstants::kDynamicAlignmentStateOffset; | 209 int offset = JavaScriptFrameConstants::kDynamicAlignmentStateOffset; |
| 210 if (dynamic_frame_alignment_) { | 210 if (dynamic_frame_alignment_) { |
| 211 __ mov(Operand(ebp, offset), edx); | 211 __ mov(Operand(ebp, offset), edx); |
| 212 } else { | 212 } else { |
| 213 __ mov(Operand(ebp, offset), Immediate(kNoAlignmentPadding)); | 213 __ mov(Operand(ebp, offset), Immediate(kNoAlignmentPadding)); |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 } | 216 } |
| 217 } | 217 } |
| 218 |
| 219 // Initailize FPU state. |
| 220 __ fninit(); |
| 221 |
| 218 return !is_aborted(); | 222 return !is_aborted(); |
| 219 } | 223 } |
| 220 | 224 |
| 221 | 225 |
| 222 void LCodeGen::DoPrologue(LPrologue* instr) { | 226 void LCodeGen::DoPrologue(LPrologue* instr) { |
| 223 Comment(";;; Prologue begin"); | 227 Comment(";;; Prologue begin"); |
| 224 | 228 |
| 225 // Possibly allocate a local context. | 229 // Possibly allocate a local context. |
| 226 if (info_->num_heap_slots() > 0) { | 230 if (info_->num_heap_slots() > 0) { |
| 227 Comment(";;; Allocate local context"); | 231 Comment(";;; Allocate local context"); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 Label done; | 275 Label done; |
| 272 __ JumpIfInNewSpace(esi, eax, &done, Label::kNear); | 276 __ JumpIfInNewSpace(esi, eax, &done, Label::kNear); |
| 273 __ Abort(kExpectedNewSpaceObject); | 277 __ Abort(kExpectedNewSpaceObject); |
| 274 __ bind(&done); | 278 __ bind(&done); |
| 275 } | 279 } |
| 276 } | 280 } |
| 277 } | 281 } |
| 278 Comment(";;; End allocate local context"); | 282 Comment(";;; End allocate local context"); |
| 279 } | 283 } |
| 280 | 284 |
| 281 // Initailize FPU state. | |
| 282 __ fninit(); | |
| 283 | |
| 284 Comment(";;; Prologue end"); | 285 Comment(";;; Prologue end"); |
| 285 } | 286 } |
| 286 | 287 |
| 287 | 288 |
| 288 void LCodeGen::GenerateOsrPrologue() { | 289 void LCodeGen::GenerateOsrPrologue() { |
| 289 // Generate the OSR entry prologue at the first unknown OSR value, or if there | 290 // Generate the OSR entry prologue at the first unknown OSR value, or if there |
| 290 // are none, at the OSR entrypoint instruction. | 291 // are none, at the OSR entrypoint instruction. |
| 291 if (osr_pc_offset_ >= 0) return; | 292 if (osr_pc_offset_ >= 0) return; |
| 292 | 293 |
| 293 osr_pc_offset_ = masm()->pc_offset(); | 294 osr_pc_offset_ = masm()->pc_offset(); |
| (...skipping 6074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6368 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6369 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6369 } | 6370 } |
| 6370 | 6371 |
| 6371 | 6372 |
| 6372 #undef __ | 6373 #undef __ |
| 6373 | 6374 |
| 6374 } // namespace internal | 6375 } // namespace internal |
| 6375 } // namespace v8 | 6376 } // namespace v8 |
| 6376 | 6377 |
| 6377 #endif // V8_TARGET_ARCH_X87 | 6378 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |