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

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

Issue 8352039: Cleanup ScopeInfo and SerializedScopeInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Converted ScopeInfo accessors to CamelCase. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 int slots = scope_info.number_of_stack_slots(); 1114 int slots = scope_info.number_of_stack_slots();
1115 int context_slots = scope_info.number_of_context_slots(); 1115 int context_slots = scope_info.number_of_context_slots();
1116 // The real slot ID is internal_slots + context_slot_id. 1116 // The real slot ID is internal_slots + context_slot_id.
1117 int internal_slots = Context::MIN_CONTEXT_SLOTS; 1117 int internal_slots = Context::MIN_CONTEXT_SLOTS;
1118 int locals = scope_info.NumberOfLocals(); 1118 int locals = scope_info.NumberOfLocals();
1119 int current_abbreviation = 4; 1119 int current_abbreviation = 4;
1120 1120
1121 for (int param = 0; param < params; ++param) { 1121 for (int param = 0; param < params; ++param) {
1122 w->WriteULEB128(current_abbreviation++); 1122 w->WriteULEB128(current_abbreviation++);
1123 w->WriteString( 1123 w->WriteString(
1124 *scope_info.parameter_name(param)->ToCString(DISALLOW_NULLS)); 1124 *scope_info.ParameterName(param)->ToCString(DISALLOW_NULLS));
1125 w->Write<uint32_t>(ty_offset); 1125 w->Write<uint32_t>(ty_offset);
1126 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>(); 1126 Writer::Slot<uint32_t> block_size = w->CreateSlotHere<uint32_t>();
1127 uintptr_t block_start = w->position(); 1127 uintptr_t block_start = w->position();
1128 w->Write<uint8_t>(DW_OP_fbreg); 1128 w->Write<uint8_t>(DW_OP_fbreg);
1129 w->WriteSLEB128( 1129 w->WriteSLEB128(
1130 JavaScriptFrameConstants::kLastParameterOffset + 1130 JavaScriptFrameConstants::kLastParameterOffset +
1131 kPointerSize * (params - param - 1)); 1131 kPointerSize * (params - param - 1));
1132 block_size.set(static_cast<uint32_t>(w->position() - block_start)); 1132 block_size.set(static_cast<uint32_t>(w->position() - block_start));
1133 } 1133 }
1134 1134
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
2149 ScopedLock lock(mutex_); 2149 ScopedLock lock(mutex_);
2150 ASSERT(!IsLineInfoTagged(line_info)); 2150 ASSERT(!IsLineInfoTagged(line_info));
2151 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); 2151 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true);
2152 ASSERT(e->value == NULL); 2152 ASSERT(e->value == NULL);
2153 e->value = TagLineInfo(line_info); 2153 e->value = TagLineInfo(line_info);
2154 } 2154 }
2155 2155
2156 2156
2157 } } // namespace v8::internal 2157 } } // namespace v8::internal
2158 #endif 2158 #endif
OLDNEW
« src/frames.cc ('K') | « src/full-codegen.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698