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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 frame_->EmitPush(r0); | 352 frame_->EmitPush(r0); |
353 frame_->CallRuntime(Runtime::kTraceExit, 1); | 353 frame_->CallRuntime(Runtime::kTraceExit, 1); |
354 } | 354 } |
355 | 355 |
356 #ifdef DEBUG | 356 #ifdef DEBUG |
357 // Add a label for checking the size of the code used for returning. | 357 // Add a label for checking the size of the code used for returning. |
358 Label check_exit_codesize; | 358 Label check_exit_codesize; |
359 masm_->bind(&check_exit_codesize); | 359 masm_->bind(&check_exit_codesize); |
360 #endif | 360 #endif |
361 | 361 |
362 { | 362 { // NOLINT |
363 // Make sure that the constant pool is not emitted inside of the return | 363 // Make sure that the constant pool is not emitted inside of the return |
364 // sequence. | 364 // sequence. |
365 Assembler::BlockConstPoolScope block_const_pool(masm_); | 365 Assembler::BlockConstPoolScope block_const_pool(masm_); |
366 | 366 |
367 // Tear down the frame which will restore the caller's frame pointer and | 367 // Tear down the frame which will restore the caller's frame pointer and |
368 // the link register. | 368 // the link register. |
369 frame_->Exit(); | 369 frame_->Exit(); |
370 | 370 |
371 // Here we use masm_-> instead of the __ macro to avoid the code coverage | 371 // Here we use masm_-> instead of the __ macro to avoid the code coverage |
372 // tool from instrumenting as we rely on the code size here. | 372 // tool from instrumenting as we rely on the code size here. |
(...skipping 8582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8955 | 8955 |
8956 // Just jump to runtime to add the two strings. | 8956 // Just jump to runtime to add the two strings. |
8957 __ bind(&string_add_runtime); | 8957 __ bind(&string_add_runtime); |
8958 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); | 8958 __ TailCallRuntime(Runtime::kStringAdd, 2, 1); |
8959 } | 8959 } |
8960 | 8960 |
8961 | 8961 |
8962 #undef __ | 8962 #undef __ |
8963 | 8963 |
8964 } } // namespace v8::internal | 8964 } } // namespace v8::internal |
OLD | NEW |