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

Side by Side Diff: src/serialize.cc

Issue 3066018: Roll over again fixed 3029033 Fix 'step in' after live edit stack manipulation (Closed)
Patch Set: merge Created 10 years, 4 months 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/mips/debug-mips.cc ('k') | src/x64/debug-x64.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 Debug::k_after_break_target_address << kDebugIdShift, 230 Debug::k_after_break_target_address << kDebugIdShift,
231 "Debug::after_break_target_address()"); 231 "Debug::after_break_target_address()");
232 Add(Debug_Address(Debug::k_debug_break_slot_address).address(), 232 Add(Debug_Address(Debug::k_debug_break_slot_address).address(),
233 DEBUG_ADDRESS, 233 DEBUG_ADDRESS,
234 Debug::k_debug_break_slot_address << kDebugIdShift, 234 Debug::k_debug_break_slot_address << kDebugIdShift,
235 "Debug::debug_break_slot_address()"); 235 "Debug::debug_break_slot_address()");
236 Add(Debug_Address(Debug::k_debug_break_return_address).address(), 236 Add(Debug_Address(Debug::k_debug_break_return_address).address(),
237 DEBUG_ADDRESS, 237 DEBUG_ADDRESS,
238 Debug::k_debug_break_return_address << kDebugIdShift, 238 Debug::k_debug_break_return_address << kDebugIdShift,
239 "Debug::debug_break_return_address()"); 239 "Debug::debug_break_return_address()");
240 Add(Debug_Address(Debug::k_restarter_frame_function_pointer).address(),
241 DEBUG_ADDRESS,
242 Debug::k_restarter_frame_function_pointer << kDebugIdShift,
243 "Debug::restarter_frame_function_pointer_address()");
240 const char* debug_register_format = "Debug::register_address(%i)"; 244 const char* debug_register_format = "Debug::register_address(%i)";
241 int dr_format_length = StrLength(debug_register_format); 245 int dr_format_length = StrLength(debug_register_format);
242 for (int i = 0; i < kNumJSCallerSaved; ++i) { 246 for (int i = 0; i < kNumJSCallerSaved; ++i) {
243 Vector<char> name = Vector<char>::New(dr_format_length + 1); 247 Vector<char> name = Vector<char>::New(dr_format_length + 1);
244 OS::SNPrintF(name, debug_register_format, i); 248 OS::SNPrintF(name, debug_register_format, i);
245 Add(Debug_Address(Debug::k_register_address, i).address(), 249 Add(Debug_Address(Debug::k_register_address, i).address(),
246 DEBUG_ADDRESS, 250 DEBUG_ADDRESS,
247 Debug::k_register_address << kDebugIdShift | i, 251 Debug::k_register_address << kDebugIdShift | i,
248 name.start()); 252 name.start());
249 } 253 }
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 ExternalReferenceTable* external_references = 475 ExternalReferenceTable* external_references =
472 ExternalReferenceTable::instance(); 476 ExternalReferenceTable::instance();
473 for (int i = 0; i < external_references->size(); ++i) { 477 for (int i = 0; i < external_references->size(); ++i) {
474 Put(external_references->address(i), i); 478 Put(external_references->address(i), i);
475 } 479 }
476 } 480 }
477 481
478 482
479 uint32_t ExternalReferenceEncoder::Encode(Address key) const { 483 uint32_t ExternalReferenceEncoder::Encode(Address key) const {
480 int index = IndexOf(key); 484 int index = IndexOf(key);
485 ASSERT(key == NULL || index >= 0);
481 return index >=0 ? ExternalReferenceTable::instance()->code(index) : 0; 486 return index >=0 ? ExternalReferenceTable::instance()->code(index) : 0;
482 } 487 }
483 488
484 489
485 const char* ExternalReferenceEncoder::NameOfAddress(Address key) const { 490 const char* ExternalReferenceEncoder::NameOfAddress(Address key) const {
486 int index = IndexOf(key); 491 int index = IndexOf(key);
487 return index >=0 ? ExternalReferenceTable::instance()->name(index) : NULL; 492 return index >=0 ? ExternalReferenceTable::instance()->name(index) : NULL;
488 } 493 }
489 494
490 495
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1457 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1453 } 1458 }
1454 } 1459 }
1455 int allocation_address = fullness_[space]; 1460 int allocation_address = fullness_[space];
1456 fullness_[space] = allocation_address + size; 1461 fullness_[space] = allocation_address + size;
1457 return allocation_address; 1462 return allocation_address;
1458 } 1463 }
1459 1464
1460 1465
1461 } } // namespace v8::internal 1466 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/debug-mips.cc ('k') | src/x64/debug-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698