OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 } | 260 } |
261 | 261 |
262 InLoopFlag in_loop = info->is_in_loop() ? IN_LOOP : NOT_IN_LOOP; | 262 InLoopFlag in_loop = info->is_in_loop() ? IN_LOOP : NOT_IN_LOOP; |
263 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, in_loop); | 263 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, in_loop); |
264 Handle<Code> code = MakeCodeEpilogue(cgen.masm(), flags, info); | 264 Handle<Code> code = MakeCodeEpilogue(cgen.masm(), flags, info); |
265 // There is no stack check table in code generated by the classic backend. | 265 // There is no stack check table in code generated by the classic backend. |
266 code->SetNoStackCheckTable(); | 266 code->SetNoStackCheckTable(); |
267 CodeGenerator::PrintCode(code, info); | 267 CodeGenerator::PrintCode(code, info); |
268 info->SetCode(code); // May be an empty handle. | 268 info->SetCode(code); // May be an empty handle. |
269 #ifdef ENABLE_GDB_JIT_INTERFACE | 269 #ifdef ENABLE_GDB_JIT_INTERFACE |
270 if (!code.is_null()) { | 270 if (FLAG_gdbjit && !code.is_null()) { |
271 GDBJITLineInfo* lineinfo = | 271 GDBJITLineInfo* lineinfo = |
272 masm.positions_recorder()->DetachGDBJITLineInfo(); | 272 masm.positions_recorder()->DetachGDBJITLineInfo(); |
273 | 273 |
274 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); | 274 GDBJIT(RegisterDetailedLineInfo(*code, lineinfo)); |
275 } | 275 } |
276 #endif | 276 #endif |
277 return !code.is_null(); | 277 return !code.is_null(); |
278 } | 278 } |
279 | 279 |
280 | 280 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 int result = save_doubles_ ? 1 : 0; | 487 int result = save_doubles_ ? 1 : 0; |
488 #ifdef _WIN64 | 488 #ifdef _WIN64 |
489 return result | ((result_size_ == 1) ? 0 : 2); | 489 return result | ((result_size_ == 1) ? 0 : 2); |
490 #else | 490 #else |
491 return result; | 491 return result; |
492 #endif | 492 #endif |
493 } | 493 } |
494 | 494 |
495 | 495 |
496 } } // namespace v8::internal | 496 } } // namespace v8::internal |
OLD | NEW |