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

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

Issue 441983002: Check that external references are registered in the serializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months 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/serialize.cc ('k') | test/cctest/test-serialize.cc » ('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 // 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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 XMMRegister input, 578 XMMRegister input,
579 XMMRegister result, 579 XMMRegister result,
580 XMMRegister double_scratch, 580 XMMRegister double_scratch,
581 Register temp1, 581 Register temp1,
582 Register temp2) { 582 Register temp2) {
583 DCHECK(!input.is(result)); 583 DCHECK(!input.is(result));
584 DCHECK(!input.is(double_scratch)); 584 DCHECK(!input.is(double_scratch));
585 DCHECK(!result.is(double_scratch)); 585 DCHECK(!result.is(double_scratch));
586 DCHECK(!temp1.is(temp2)); 586 DCHECK(!temp1.is(temp2));
587 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL); 587 DCHECK(ExternalReference::math_exp_constants(0).address() != NULL);
588 DCHECK(!masm->serializer_enabled()); // External references not serializable.
588 589
589 Label done; 590 Label done;
590 591
591 __ Move(kScratchRegister, ExternalReference::math_exp_constants(0)); 592 __ Move(kScratchRegister, ExternalReference::math_exp_constants(0));
592 __ movsd(double_scratch, Operand(kScratchRegister, 0 * kDoubleSize)); 593 __ movsd(double_scratch, Operand(kScratchRegister, 0 * kDoubleSize));
593 __ xorpd(result, result); 594 __ xorpd(result, result);
594 __ ucomisd(double_scratch, input); 595 __ ucomisd(double_scratch, input);
595 __ j(above_equal, &done); 596 __ j(above_equal, &done);
596 __ ucomisd(input, Operand(kScratchRegister, 1 * kDoubleSize)); 597 __ ucomisd(input, Operand(kScratchRegister, 1 * kDoubleSize));
597 __ movsd(result, Operand(kScratchRegister, 2 * kDoubleSize)); 598 __ movsd(result, Operand(kScratchRegister, 2 * kDoubleSize));
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize. 706 // argument_count_reg_ * times_pointer_size + (receiver - 1) * kPointerSize.
706 return Operand(base_reg_, argument_count_reg_, times_pointer_size, 707 return Operand(base_reg_, argument_count_reg_, times_pointer_size,
707 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize); 708 displacement_to_last_argument + (receiver - 1 - index) * kPointerSize);
708 } 709 }
709 } 710 }
710 711
711 712
712 } } // namespace v8::internal 713 } } // namespace v8::internal
713 714
714 #endif // V8_TARGET_ARCH_X64 715 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | test/cctest/test-serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698