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

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 50863002: Use register allocator for context on x64. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: added comment to test case Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/lithium-codegen-x64.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 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 3351 matching lines...) Expand 10 before | Expand all | Expand 10 after
3362 Operand stamp_operand = __ ExternalOperand(stamp); 3362 Operand stamp_operand = __ ExternalOperand(stamp);
3363 __ movq(scratch, stamp_operand); 3363 __ movq(scratch, stamp_operand);
3364 __ cmpq(scratch, FieldOperand(object, JSDate::kCacheStampOffset)); 3364 __ cmpq(scratch, FieldOperand(object, JSDate::kCacheStampOffset));
3365 __ j(not_equal, &runtime, Label::kNear); 3365 __ j(not_equal, &runtime, Label::kNear);
3366 __ movq(result, FieldOperand(object, JSDate::kValueOffset + 3366 __ movq(result, FieldOperand(object, JSDate::kValueOffset +
3367 kPointerSize * index->value())); 3367 kPointerSize * index->value()));
3368 __ jmp(&done); 3368 __ jmp(&done);
3369 } 3369 }
3370 __ bind(&runtime); 3370 __ bind(&runtime);
3371 __ PrepareCallCFunction(2); 3371 __ PrepareCallCFunction(2);
3372 __ movq(arg_reg_1, object); 3372 __ movq(arg_reg_1, object);
3373 __ movq(arg_reg_2, index, RelocInfo::NONE64); 3373 __ movq(arg_reg_2, index, RelocInfo::NONE64);
3374 __ CallCFunction(ExternalReference::get_date_field_function(isolate()), 2); 3374 __ CallCFunction(ExternalReference::get_date_field_function(isolate()), 2);
3375 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 3375 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
3376 __ jmp(&done); 3376 __ jmp(&done);
3377 } 3377 }
3378 3378
3379 __ bind(&not_date_object); 3379 __ bind(&not_date_object);
3380 __ CallRuntime(Runtime::kThrowNotDateError, 0); 3380 __ CallRuntime(Runtime::kThrowNotDateError, 0);
3381 __ bind(&done); 3381 __ bind(&done);
3382 context()->Plug(rax); 3382 context()->Plug(rax);
3383 } 3383 }
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after
4944 4944
4945 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4945 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4946 Assembler::target_address_at(call_target_address)); 4946 Assembler::target_address_at(call_target_address));
4947 return OSR_AFTER_STACK_CHECK; 4947 return OSR_AFTER_STACK_CHECK;
4948 } 4948 }
4949 4949
4950 4950
4951 } } // namespace v8::internal 4951 } } // namespace v8::internal
4952 4952
4953 #endif // V8_TARGET_ARCH_X64 4953 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698