| OLD | NEW | 
|---|
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "src/gdb-jit.h" | 5 #include "src/gdb-jit.h" | 
| 6 | 6 | 
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" | 
| 8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" | 
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" | 
| 10 #include "src/compiler.h" | 10 #include "src/compiler.h" | 
| (...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1180         builder.Reset(); | 1180         builder.Reset(); | 
| 1181         builder.AddFormatted("slot%d", slot); | 1181         builder.AddFormatted("slot%d", slot); | 
| 1182         w->WriteString(builder.Finalize()); | 1182         w->WriteString(builder.Finalize()); | 
| 1183       } | 1183       } | 
| 1184 | 1184 | 
| 1185       // See contexts.h for more information. | 1185       // See contexts.h for more information. | 
| 1186       DCHECK(Context::MIN_CONTEXT_SLOTS == 4); | 1186       DCHECK(Context::MIN_CONTEXT_SLOTS == 4); | 
| 1187       DCHECK(Context::CLOSURE_INDEX == 0); | 1187       DCHECK(Context::CLOSURE_INDEX == 0); | 
| 1188       DCHECK(Context::PREVIOUS_INDEX == 1); | 1188       DCHECK(Context::PREVIOUS_INDEX == 1); | 
| 1189       DCHECK(Context::EXTENSION_INDEX == 2); | 1189       DCHECK(Context::EXTENSION_INDEX == 2); | 
| 1190       DCHECK(Context::GLOBAL_OBJECT_INDEX == 3); | 1190       DCHECK(Context::NATIVE_CONTEXT_INDEX == 3); | 
| 1191       w->WriteULEB128(current_abbreviation++); | 1191       w->WriteULEB128(current_abbreviation++); | 
| 1192       w->WriteString(".closure"); | 1192       w->WriteString(".closure"); | 
| 1193       w->WriteULEB128(current_abbreviation++); | 1193       w->WriteULEB128(current_abbreviation++); | 
| 1194       w->WriteString(".previous"); | 1194       w->WriteString(".previous"); | 
| 1195       w->WriteULEB128(current_abbreviation++); | 1195       w->WriteULEB128(current_abbreviation++); | 
| 1196       w->WriteString(".extension"); | 1196       w->WriteString(".extension"); | 
| 1197       w->WriteULEB128(current_abbreviation++); | 1197       w->WriteULEB128(current_abbreviation++); | 
| 1198       w->WriteString(".global"); | 1198       w->WriteString(".native_context"); | 
| 1199 | 1199 | 
| 1200       for (int context_slot = 0; | 1200       for (int context_slot = 0; | 
| 1201            context_slot < context_slots; | 1201            context_slot < context_slots; | 
| 1202            ++context_slot) { | 1202            ++context_slot) { | 
| 1203         w->WriteULEB128(current_abbreviation++); | 1203         w->WriteULEB128(current_abbreviation++); | 
| 1204         builder.Reset(); | 1204         builder.Reset(); | 
| 1205         builder.AddFormatted("context_slot%d", context_slot + internal_slots); | 1205         builder.AddFormatted("context_slot%d", context_slot + internal_slots); | 
| 1206         w->WriteString(builder.Finalize()); | 1206         w->WriteString(builder.Finalize()); | 
| 1207       } | 1207       } | 
| 1208 | 1208 | 
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2196       LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data); | 2196       LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data); | 
| 2197       PutLineInfo(reinterpret_cast<Address>(event->code_start), line_info); | 2197       PutLineInfo(reinterpret_cast<Address>(event->code_start), line_info); | 
| 2198       break; | 2198       break; | 
| 2199     } | 2199     } | 
| 2200   } | 2200   } | 
| 2201 } | 2201 } | 
| 2202 #endif | 2202 #endif | 
| 2203 }  // namespace GDBJITInterface | 2203 }  // namespace GDBJITInterface | 
| 2204 }  // namespace internal | 2204 }  // namespace internal | 
| 2205 }  // namespace v8 | 2205 }  // namespace v8 | 
| OLD | NEW | 
|---|