OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 | 305 |
306 function CppEntriesProviderMock() { | 306 function CppEntriesProviderMock() { |
307 }; | 307 }; |
308 | 308 |
309 | 309 |
310 CppEntriesProviderMock.prototype.parseVmSymbols = function( | 310 CppEntriesProviderMock.prototype.parseVmSymbols = function( |
311 name, startAddr, endAddr, symbolAdder) { | 311 name, startAddr, endAddr, symbolAdder) { |
312 var symbols = { | 312 var symbols = { |
313 'shell': | 313 'shell': |
314 [['v8::internal::JSObject::LocalLookupRealNamedProperty(v8::internal::St
ring*, v8::internal::LookupResult*)', 0x080f8800, 0x080f8d90], | 314 [['v8::internal::JSObject::LookupOwnRealNamedProperty(v8::internal::Stri
ng*, v8::internal::LookupResult*)', 0x080f8800, 0x080f8d90], |
315 ['v8::internal::HashTable<v8::internal::StringDictionaryShape, v8::inte
rnal::String*>::FindEntry(v8::internal::String*)', 0x080f8210, 0x080f8800], | 315 ['v8::internal::HashTable<v8::internal::StringDictionaryShape, v8::inte
rnal::String*>::FindEntry(v8::internal::String*)', 0x080f8210, 0x080f8800], |
316 ['v8::internal::Runtime_Math_exp(v8::internal::Arguments)', 0x08123b20,
0x08123b80]], | 316 ['v8::internal::Runtime_Math_exp(v8::internal::Arguments)', 0x08123b20,
0x08123b80]], |
317 '/lib32/libm-2.7.so': | 317 '/lib32/libm-2.7.so': |
318 [['exp', startAddr + 0x00009e80, startAddr + 0x00009e80 + 0xa3], | 318 [['exp', startAddr + 0x00009e80, startAddr + 0x00009e80 + 0xa3], |
319 ['fegetexcept', startAddr + 0x000061e0, startAddr + 0x000061e0 + 0x15]]
, | 319 ['fegetexcept', startAddr + 0x000061e0, startAddr + 0x000061e0 + 0x15]]
, |
320 'ffffe000-fffff000': []}; | 320 'ffffe000-fffff000': []}; |
321 assertTrue(name in symbols); | 321 assertTrue(name in symbols); |
322 var syms = symbols[name]; | 322 var syms = symbols[name]; |
323 for (var i = 0; i < syms.length; ++i) { | 323 for (var i = 0; i < syms.length; ++i) { |
324 symbolAdder.apply(null, syms[i]); | 324 symbolAdder.apply(null, syms[i]); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 'tickprocessor-test.log', 'tickprocessor-test.gc-state'], | 411 'tickprocessor-test.log', 'tickprocessor-test.gc-state'], |
412 'FunctionInfo': [ | 412 'FunctionInfo': [ |
413 false, false, null, | 413 false, false, null, |
414 'tickprocessor-test-func-info.log', 'tickprocessor-test.func-info'] | 414 'tickprocessor-test-func-info.log', 'tickprocessor-test.func-info'] |
415 }; | 415 }; |
416 for (var testName in testData) { | 416 for (var testName in testData) { |
417 print('=== testProcessing-' + testName + ' ==='); | 417 print('=== testProcessing-' + testName + ' ==='); |
418 driveTickProcessorTest.apply(null, testData[testName]); | 418 driveTickProcessorTest.apply(null, testData[testName]); |
419 } | 419 } |
420 })(); | 420 })(); |
OLD | NEW |