| OLD | NEW |
| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(), | 240 Add(Debug_Address(Debug::k_restarter_frame_function_pointer).address(), |
| 241 DEBUG_ADDRESS, | 241 DEBUG_ADDRESS, |
| 242 Debug::k_restarter_frame_function_pointer << kDebugIdShift, | 242 Debug::k_restarter_frame_function_pointer << kDebugIdShift, |
| 243 "Debug::restarter_frame_function_pointer_address()"); | 243 "Debug::restarter_frame_function_pointer_address()"); |
| 244 const char* debug_register_format = "Debug::register_address(%i)"; | |
| 245 int dr_format_length = StrLength(debug_register_format); | |
| 246 for (int i = 0; i < kNumJSCallerSaved; ++i) { | |
| 247 Vector<char> name = Vector<char>::New(dr_format_length + 1); | |
| 248 OS::SNPrintF(name, debug_register_format, i); | |
| 249 Add(Debug_Address(Debug::k_register_address, i).address(), | |
| 250 DEBUG_ADDRESS, | |
| 251 Debug::k_register_address << kDebugIdShift | i, | |
| 252 name.start()); | |
| 253 } | |
| 254 #endif | 244 #endif |
| 255 | 245 |
| 256 // Stat counters | 246 // Stat counters |
| 257 struct StatsRefTableEntry { | 247 struct StatsRefTableEntry { |
| 258 StatsCounter* counter; | 248 StatsCounter* counter; |
| 259 uint16_t id; | 249 uint16_t id; |
| 260 const char* name; | 250 const char* name; |
| 261 }; | 251 }; |
| 262 | 252 |
| 263 static const StatsRefTableEntry stats_ref_table[] = { | 253 static const StatsRefTableEntry stats_ref_table[] = { |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); | 1466 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); |
| 1477 } | 1467 } |
| 1478 } | 1468 } |
| 1479 int allocation_address = fullness_[space]; | 1469 int allocation_address = fullness_[space]; |
| 1480 fullness_[space] = allocation_address + size; | 1470 fullness_[space] = allocation_address + size; |
| 1481 return allocation_address; | 1471 return allocation_address; |
| 1482 } | 1472 } |
| 1483 | 1473 |
| 1484 | 1474 |
| 1485 } } // namespace v8::internal | 1475 } } // namespace v8::internal |
| OLD | NEW |