| 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 #include "src/v8.h" | 5 #include "src/v8.h" | 
| 6 | 6 | 
| 7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 | 
| 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 3684 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3695   __ mov(eax, FieldOperand(eax, JSValue::kValueOffset)); | 3695   __ mov(eax, FieldOperand(eax, JSValue::kValueOffset)); | 
| 3696 | 3696 | 
| 3697   __ bind(&done); | 3697   __ bind(&done); | 
| 3698   context()->Plug(eax); | 3698   context()->Plug(eax); | 
| 3699 } | 3699 } | 
| 3700 | 3700 | 
| 3701 | 3701 | 
| 3702 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { | 3702 void FullCodeGenerator::EmitDateField(CallRuntime* expr) { | 
| 3703   ZoneList<Expression*>* args = expr->arguments(); | 3703   ZoneList<Expression*>* args = expr->arguments(); | 
| 3704   DCHECK(args->length() == 2); | 3704   DCHECK(args->length() == 2); | 
| 3705   DCHECK_NOT_NUL(args->at(1)->AsLiteral()); | 3705   DCHECK_NOT_NULL(args->at(1)->AsLiteral()); | 
| 3706   Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); | 3706   Smi* index = Smi::cast(*(args->at(1)->AsLiteral()->value())); | 
| 3707 | 3707 | 
| 3708   VisitForAccumulatorValue(args->at(0));  // Load the object. | 3708   VisitForAccumulatorValue(args->at(0));  // Load the object. | 
| 3709 | 3709 | 
| 3710   Label runtime, done, not_date_object; | 3710   Label runtime, done, not_date_object; | 
| 3711   Register object = eax; | 3711   Register object = eax; | 
| 3712   Register result = eax; | 3712   Register result = eax; | 
| 3713   Register scratch = ecx; | 3713   Register scratch = ecx; | 
| 3714 | 3714 | 
| 3715   __ JumpIfSmi(object, ¬_date_object); | 3715   __ JumpIfSmi(object, ¬_date_object); | 
| (...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5270   DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5270   DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 
| 5271             Assembler::target_address_at(call_target_address, | 5271             Assembler::target_address_at(call_target_address, | 
| 5272                                          unoptimized_code)); | 5272                                          unoptimized_code)); | 
| 5273   return OSR_AFTER_STACK_CHECK; | 5273   return OSR_AFTER_STACK_CHECK; | 
| 5274 } | 5274 } | 
| 5275 | 5275 | 
| 5276 | 5276 | 
| 5277 } }  // namespace v8::internal | 5277 } }  // namespace v8::internal | 
| 5278 | 5278 | 
| 5279 #endif  // V8_TARGET_ARCH_X87 | 5279 #endif  // V8_TARGET_ARCH_X87 | 
| OLD | NEW | 
|---|