OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3355 __ movp(scratch, stamp_operand); | 3355 __ movp(scratch, stamp_operand); |
3356 __ cmpq(scratch, FieldOperand(object, JSDate::kCacheStampOffset)); | 3356 __ cmpq(scratch, FieldOperand(object, JSDate::kCacheStampOffset)); |
3357 __ j(not_equal, &runtime, Label::kNear); | 3357 __ j(not_equal, &runtime, Label::kNear); |
3358 __ movp(result, FieldOperand(object, JSDate::kValueOffset + | 3358 __ movp(result, FieldOperand(object, JSDate::kValueOffset + |
3359 kPointerSize * index->value())); | 3359 kPointerSize * index->value())); |
3360 __ jmp(&done); | 3360 __ jmp(&done); |
3361 } | 3361 } |
3362 __ bind(&runtime); | 3362 __ bind(&runtime); |
3363 __ PrepareCallCFunction(2); | 3363 __ PrepareCallCFunction(2); |
3364 __ movp(arg_reg_1, object); | 3364 __ movp(arg_reg_1, object); |
3365 __ Move(arg_reg_2, index, RelocInfo::NONE64); | 3365 __ Move(arg_reg_2, index, Assembler::RelocInfoNone()); |
3366 __ CallCFunction(ExternalReference::get_date_field_function(isolate()), 2); | 3366 __ CallCFunction(ExternalReference::get_date_field_function(isolate()), 2); |
3367 __ movp(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | 3367 __ movp(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
3368 __ jmp(&done); | 3368 __ jmp(&done); |
3369 } | 3369 } |
3370 | 3370 |
3371 __ bind(¬_date_object); | 3371 __ bind(¬_date_object); |
3372 __ CallRuntime(Runtime::kThrowNotDateError, 0); | 3372 __ CallRuntime(Runtime::kThrowNotDateError, 0); |
3373 __ bind(&done); | 3373 __ bind(&done); |
3374 context()->Plug(rax); | 3374 context()->Plug(rax); |
3375 } | 3375 } |
(...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4900 | 4900 |
4901 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4901 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
4902 Assembler::target_address_at(call_target_address)); | 4902 Assembler::target_address_at(call_target_address)); |
4903 return OSR_AFTER_STACK_CHECK; | 4903 return OSR_AFTER_STACK_CHECK; |
4904 } | 4904 } |
4905 | 4905 |
4906 | 4906 |
4907 } } // namespace v8::internal | 4907 } } // namespace v8::internal |
4908 | 4908 |
4909 #endif // V8_TARGET_ARCH_X64 | 4909 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |