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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 159584: X64: Fix error in division & modulus, adjust mjsunit test status, fix lint er... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 Abort(msg); 64 Abort(msg);
65 // will not return here 65 // will not return here
66 bind(&L); 66 bind(&L);
67 } 67 }
68 68
69 69
70 void MacroAssembler::NegativeZeroTest(Register result, 70 void MacroAssembler::NegativeZeroTest(Register result,
71 Register op, 71 Register op,
72 Label* then_label) { 72 Label* then_label) {
73 Label ok; 73 Label ok;
74 testq(result, result); 74 testl(result, result);
75 j(not_zero, &ok); 75 j(not_zero, &ok);
76 testq(op, op); 76 testl(op, op);
77 j(sign, then_label); 77 j(sign, then_label);
78 bind(&ok); 78 bind(&ok);
79 } 79 }
80 80
81 81
82 void MacroAssembler::Abort(const char* msg) { 82 void MacroAssembler::Abort(const char* msg) {
83 // We want to pass the msg string like a smi to avoid GC 83 // We want to pass the msg string like a smi to avoid GC
84 // problems, however msg is not guaranteed to be aligned 84 // problems, however msg is not guaranteed to be aligned
85 // properly. Instead, we pass an aligned pointer that is 85 // properly. Instead, we pass an aligned pointer that is
86 // a proper v8 smi, but also pass the alignment difference 86 // a proper v8 smi, but also pass the alignment difference
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 Context::SECURITY_TOKEN_INDEX * kPointerSize; 1033 Context::SECURITY_TOKEN_INDEX * kPointerSize;
1034 movq(scratch, FieldOperand(scratch, token_offset)); 1034 movq(scratch, FieldOperand(scratch, token_offset));
1035 cmpq(scratch, FieldOperand(kScratchRegister, token_offset)); 1035 cmpq(scratch, FieldOperand(kScratchRegister, token_offset));
1036 j(not_equal, miss); 1036 j(not_equal, miss);
1037 1037
1038 bind(&same_contexts); 1038 bind(&same_contexts);
1039 } 1039 }
1040 1040
1041 1041
1042 } } // namespace v8::internal 1042 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698