OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
391 36, | 391 36, |
392 "LDoubleConstant::min_int"); | 392 "LDoubleConstant::min_int"); |
393 Add(ExternalReference::address_of_one_half().address(), | 393 Add(ExternalReference::address_of_one_half().address(), |
394 UNCLASSIFIED, | 394 UNCLASSIFIED, |
395 37, | 395 37, |
396 "LDoubleConstant::one_half"); | 396 "LDoubleConstant::one_half"); |
397 Add(ExternalReference::isolate_address(isolate).address(), | 397 Add(ExternalReference::isolate_address(isolate).address(), |
398 UNCLASSIFIED, | 398 UNCLASSIFIED, |
399 38, | 399 38, |
400 "isolate"); | 400 "isolate"); |
401 Add(ExternalReference::address_of_minus_zero().address(), | |
402 UNCLASSIFIED, | |
403 39, | |
Slava Chigrin
2014/08/05 11:47:15
I decided to not renumber all IDs after this, to a
| |
404 "LDoubleConstant::minus_zero"); | |
405 Add(ExternalReference::address_of_negative_infinity().address(), | 401 Add(ExternalReference::address_of_negative_infinity().address(), |
406 UNCLASSIFIED, | 402 UNCLASSIFIED, |
407 40, | 403 40, |
408 "LDoubleConstant::negative_infinity"); | 404 "LDoubleConstant::negative_infinity"); |
409 Add(ExternalReference::power_double_double_function(isolate).address(), | 405 Add(ExternalReference::power_double_double_function(isolate).address(), |
410 UNCLASSIFIED, | 406 UNCLASSIFIED, |
411 41, | 407 41, |
412 "power_double_double_function"); | 408 "power_double_double_function"); |
413 Add(ExternalReference::power_double_int_function(isolate).address(), | 409 Add(ExternalReference::power_double_int_function(isolate).address(), |
414 UNCLASSIFIED, | 410 UNCLASSIFIED, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
520 UNCLASSIFIED, | 516 UNCLASSIFIED, |
521 66, | 517 66, |
522 "Debug::after_break_target_address()"); | 518 "Debug::after_break_target_address()"); |
523 | 519 |
524 Add(ExternalReference::debug_restarter_frame_function_pointer_address( | 520 Add(ExternalReference::debug_restarter_frame_function_pointer_address( |
525 isolate).address(), | 521 isolate).address(), |
526 UNCLASSIFIED, | 522 UNCLASSIFIED, |
527 67, | 523 67, |
528 "Debug::restarter_frame_function_pointer_address()"); | 524 "Debug::restarter_frame_function_pointer_address()"); |
529 | 525 |
526 Add(ExternalReference::flush_icache_function(isolate).address(), | |
527 UNCLASSIFIED, | |
528 68, | |
529 "Isolate::flush_icache_function"); | |
530 Add(ExternalReference::log_enter_external_function(isolate).address(), | |
531 UNCLASSIFIED, | |
532 69, | |
533 "Isolate::log_enter_external_function"); | |
534 Add(ExternalReference::log_leave_external_function(isolate).address(), | |
535 UNCLASSIFIED, | |
536 70, | |
537 "Isolate::log_leave_external_function"); | |
538 Add(ExternalReference::address_of_minus_one_half().address(), | |
539 UNCLASSIFIED, | |
540 71, | |
541 "Isolate::address_of_minus_one_half"); | |
542 Add(ExternalReference::math_log_double_function(isolate).address(), | |
543 UNCLASSIFIED, | |
544 72, | |
545 "Isolate::math_log_double_function"); | |
546 Add(ExternalReference::stress_deopt_count(isolate).address(), | |
547 UNCLASSIFIED, | |
548 73, | |
549 "Isolate::stress_deopt_count"); | |
550 Add(ExternalReference::debug_is_active_address(isolate).address(), | |
551 UNCLASSIFIED, | |
552 74, | |
553 "Isolate::debug_is_active_address"); | |
554 | |
530 // Add a small set of deopt entry addresses to encoder without generating the | 555 // Add a small set of deopt entry addresses to encoder without generating the |
531 // deopt table code, which isn't possible at deserialization time. | 556 // deopt table code, which isn't possible at deserialization time. |
532 HandleScope scope(isolate); | 557 HandleScope scope(isolate); |
533 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { | 558 for (int entry = 0; entry < kDeoptTableSerializeEntryCount; ++entry) { |
534 Address address = Deoptimizer::GetDeoptimizationEntry( | 559 Address address = Deoptimizer::GetDeoptimizationEntry( |
535 isolate, | 560 isolate, |
536 entry, | 561 entry, |
537 Deoptimizer::LAZY, | 562 Deoptimizer::LAZY, |
538 Deoptimizer::CALCULATE_ENTRY_ADDRESS); | 563 Deoptimizer::CALCULATE_ENTRY_ADDRESS); |
539 Add(address, LAZY_DEOPTIMIZATION, entry, "lazy_deopt"); | 564 Add(address, LAZY_DEOPTIMIZATION, entry, "lazy_deopt"); |
(...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2070 | 2095 |
2071 int SerializedCodeData::CheckSum(String* string) { | 2096 int SerializedCodeData::CheckSum(String* string) { |
2072 int checksum = Version::Hash(); | 2097 int checksum = Version::Hash(); |
2073 #ifdef DEBUG | 2098 #ifdef DEBUG |
2074 uint32_t seed = static_cast<uint32_t>(checksum); | 2099 uint32_t seed = static_cast<uint32_t>(checksum); |
2075 checksum = static_cast<int>(IteratingStringHasher::Hash(string, seed)); | 2100 checksum = static_cast<int>(IteratingStringHasher::Hash(string, seed)); |
2076 #endif // DEBUG | 2101 #endif // DEBUG |
2077 return checksum; | 2102 return checksum; |
2078 } | 2103 } |
2079 } } // namespace v8::internal | 2104 } } // namespace v8::internal |
OLD | NEW |