| 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 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 w->Write<intptr_t>(desc_->CodeStart()); | 1105 w->Write<intptr_t>(desc_->CodeStart()); |
| 1106 w->Write<intptr_t>(desc_->CodeStart() + desc_->CodeSize()); | 1106 w->Write<intptr_t>(desc_->CodeStart() + desc_->CodeSize()); |
| 1107 Writer::Slot<uint32_t> fb_block_size = w->CreateSlotHere<uint32_t>(); | 1107 Writer::Slot<uint32_t> fb_block_size = w->CreateSlotHere<uint32_t>(); |
| 1108 uintptr_t fb_block_start = w->position(); | 1108 uintptr_t fb_block_start = w->position(); |
| 1109 #if defined(V8_TARGET_ARCH_IA32) | 1109 #if defined(V8_TARGET_ARCH_IA32) |
| 1110 w->Write<uint8_t>(DW_OP_reg5); // The frame pointer's here on ia32 | 1110 w->Write<uint8_t>(DW_OP_reg5); // The frame pointer's here on ia32 |
| 1111 #elif defined(V8_TARGET_ARCH_X64) | 1111 #elif defined(V8_TARGET_ARCH_X64) |
| 1112 w->Write<uint8_t>(DW_OP_reg6); // and here on x64. | 1112 w->Write<uint8_t>(DW_OP_reg6); // and here on x64. |
| 1113 #elif defined(V8_TARGET_ARCH_ARM) | 1113 #elif defined(V8_TARGET_ARCH_ARM) |
| 1114 UNIMPLEMENTED(); | 1114 UNIMPLEMENTED(); |
| 1115 #elif defined(V8_TARGET_ARCH_MIPS) |
| 1116 UNIMPLEMENTED(); |
| 1115 #else | 1117 #else |
| 1116 #error Unsupported target architecture. | 1118 #error Unsupported target architecture. |
| 1117 #endif | 1119 #endif |
| 1118 fb_block_size.set(static_cast<uint32_t>(w->position() - fb_block_start)); | 1120 fb_block_size.set(static_cast<uint32_t>(w->position() - fb_block_start)); |
| 1119 | 1121 |
| 1120 int params = scope->num_parameters(); | 1122 int params = scope->num_parameters(); |
| 1121 int slots = scope->num_stack_slots(); | 1123 int slots = scope->num_stack_slots(); |
| 1122 int context_slots = scope->ContextLocalCount(); | 1124 int context_slots = scope->ContextLocalCount(); |
| 1123 // The real slot ID is internal_slots + context_slot_id. | 1125 // The real slot ID is internal_slots + context_slot_id. |
| 1124 int internal_slots = Context::MIN_CONTEXT_SLOTS; | 1126 int internal_slots = Context::MIN_CONTEXT_SLOTS; |
| (...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2162 ScopedLock lock(mutex.Pointer()); | 2164 ScopedLock lock(mutex.Pointer()); |
| 2163 ASSERT(!IsLineInfoTagged(line_info)); | 2165 ASSERT(!IsLineInfoTagged(line_info)); |
| 2164 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); | 2166 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
| 2165 ASSERT(e->value == NULL); | 2167 ASSERT(e->value == NULL); |
| 2166 e->value = TagLineInfo(line_info); | 2168 e->value = TagLineInfo(line_info); |
| 2167 } | 2169 } |
| 2168 | 2170 |
| 2169 | 2171 |
| 2170 } } // namespace v8::internal | 2172 } } // namespace v8::internal |
| 2171 #endif | 2173 #endif |
| OLD | NEW |