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

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

Issue 390004: Fix warnings on Win64. (Closed)
Patch Set: Created 11 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
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 #ifdef ENABLE_DEBUGGER_SUPPORT 141 #ifdef ENABLE_DEBUGGER_SUPPORT
142 // Add padding that will be overwritten by a debugger breakpoint. We 142 // Add padding that will be overwritten by a debugger breakpoint. We
143 // have just generated "movq rsp, rbp; pop rbp; ret k" with length 7 143 // have just generated "movq rsp, rbp; pop rbp; ret k" with length 7
144 // (3 + 1 + 3). 144 // (3 + 1 + 3).
145 const int kPadding = Debug::kX64JSReturnSequenceLength - 7; 145 const int kPadding = Debug::kX64JSReturnSequenceLength - 7;
146 for (int i = 0; i < kPadding; ++i) { 146 for (int i = 0; i < kPadding; ++i) {
147 masm_->int3(); 147 masm_->int3();
148 } 148 }
149 // Check that the size of the code used for returning matches what is 149 // Check that the size of the code used for returning matches what is
150 // expected by the debugger. 150 // expected by the debugger.
151 ASSERT_EQ(Debug::Debug::kX64JSReturnSequenceLength, 151 ASSERT_EQ(Debug::kX64JSReturnSequenceLength,
152 masm_->SizeOfCodeGeneratedSince(&check_exit_codesize)); 152 masm_->SizeOfCodeGeneratedSince(&check_exit_codesize));
153 #endif 153 #endif
154 } 154 }
155 } 155 }
156 156
157 157
158 void FastCodeGenerator::Move(Expression::Context context, Register source) { 158 void FastCodeGenerator::Move(Expression::Context context, Register source) {
159 switch (context) { 159 switch (context) {
160 case Expression::kUninitialized: 160 case Expression::kUninitialized:
161 UNREACHABLE(); 161 UNREACHABLE();
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 true_label_ = saved_true; 1503 true_label_ = saved_true;
1504 false_label_ = saved_false; 1504 false_label_ = saved_false;
1505 // Convert current context to test context: End post-test code. 1505 // Convert current context to test context: End post-test code.
1506 } 1506 }
1507 1507
1508 1508
1509 #undef __ 1509 #undef __
1510 1510
1511 1511
1512 } } // namespace v8::internal 1512 } } // namespace v8::internal
OLDNEW
« src/api.cc ('K') | « src/x64/disasm-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698