Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: src/gdb-jit.cc

Issue 1480003002: [runtime] Replace global object link with native context link in all contexts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add patch from Orion for interpreter cementation test. Disable obsolete/invalid tests. Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698