| 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/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 } else if (FLAG_debug_code) { | 222 } else if (FLAG_debug_code) { |
| 223 Label done; | 223 Label done; |
| 224 __ JumpIfInNewSpace(esi, eax, &done, Label::kNear); | 224 __ JumpIfInNewSpace(esi, eax, &done, Label::kNear); |
| 225 __ Abort(kExpectedNewSpaceObject); | 225 __ Abort(kExpectedNewSpaceObject); |
| 226 __ bind(&done); | 226 __ bind(&done); |
| 227 } | 227 } |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 } | 230 } |
| 231 | 231 |
| 232 PrepareForBailoutForId(BailoutId::Prologue(), NO_REGISTERS); |
| 233 // Function register is trashed in case we bailout here. But since that |
| 234 // could happen only when we allocate a context the value of |
| 235 // |function_in_register| is correct. |
| 236 |
| 232 // Possibly set up a local binding to the this function which is used in | 237 // Possibly set up a local binding to the this function which is used in |
| 233 // derived constructors with super calls. | 238 // derived constructors with super calls. |
| 234 Variable* this_function_var = scope()->this_function_var(); | 239 Variable* this_function_var = scope()->this_function_var(); |
| 235 if (this_function_var != nullptr) { | 240 if (this_function_var != nullptr) { |
| 236 Comment cmnt(masm_, "[ This function"); | 241 Comment cmnt(masm_, "[ This function"); |
| 237 if (!function_in_register) { | 242 if (!function_in_register) { |
| 238 __ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 243 __ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
| 239 // The write barrier clobbers register again, keep is marked as such. | 244 // The write barrier clobbers register again, keep is marked as such. |
| 240 } | 245 } |
| 241 SetVar(this_function_var, edi, ebx, edx); | 246 SetVar(this_function_var, edi, ebx, edx); |
| (...skipping 4976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5218 Assembler::target_address_at(call_target_address, | 5223 Assembler::target_address_at(call_target_address, |
| 5219 unoptimized_code)); | 5224 unoptimized_code)); |
| 5220 return OSR_AFTER_STACK_CHECK; | 5225 return OSR_AFTER_STACK_CHECK; |
| 5221 } | 5226 } |
| 5222 | 5227 |
| 5223 | 5228 |
| 5224 } // namespace internal | 5229 } // namespace internal |
| 5225 } // namespace v8 | 5230 } // namespace v8 |
| 5226 | 5231 |
| 5227 #endif // V8_TARGET_ARCH_X87 | 5232 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |