OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2097 } | 2097 } |
2098 // Record source position for debugger. | 2098 // Record source position for debugger. |
2099 SetSourcePosition(expr->position()); | 2099 SetSourcePosition(expr->position()); |
2100 | 2100 |
2101 // Record call targets in unoptimized code, but not in the snapshot. | 2101 // Record call targets in unoptimized code, but not in the snapshot. |
2102 bool record_call_target = !Serializer::enabled(); | 2102 bool record_call_target = !Serializer::enabled(); |
2103 if (record_call_target) { | 2103 if (record_call_target) { |
2104 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET); | 2104 flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET); |
2105 } | 2105 } |
2106 CallFunctionStub stub(arg_count, flags); | 2106 CallFunctionStub stub(arg_count, flags); |
2107 __ CallStub(&stub); | 2107 __ CallStub(&stub, expr->id()); |
2108 if (record_call_target) { | 2108 if (record_call_target) { |
2109 // There is a one element cache in the instruction stream. | 2109 // There is a one element cache in the instruction stream. |
2110 #ifdef DEBUG | 2110 #ifdef DEBUG |
2111 int return_site_offset = masm()->pc_offset(); | 2111 int return_site_offset = masm()->pc_offset(); |
2112 #endif | 2112 #endif |
2113 Handle<Object> uninitialized = | 2113 Handle<Object> uninitialized = |
2114 CallFunctionStub::UninitializedSentinel(isolate()); | 2114 CallFunctionStub::UninitializedSentinel(isolate()); |
2115 Handle<JSGlobalPropertyCell> cell = | 2115 Handle<JSGlobalPropertyCell> cell = |
2116 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); | 2116 isolate()->factory()->NewJSGlobalPropertyCell(uninitialized); |
2117 __ test(eax, Immediate(cell)); | 2117 __ test(eax, Immediate(cell)); |
(...skipping 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4345 *context_length = 0; | 4345 *context_length = 0; |
4346 return previous_; | 4346 return previous_; |
4347 } | 4347 } |
4348 | 4348 |
4349 | 4349 |
4350 #undef __ | 4350 #undef __ |
4351 | 4351 |
4352 } } // namespace v8::internal | 4352 } } // namespace v8::internal |
4353 | 4353 |
4354 #endif // V8_TARGET_ARCH_IA32 | 4354 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |