| 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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Runtime functions | 147 // Runtime functions |
| 148 #define RUNTIME_ENTRY(name, nargs, ressize) \ | 148 #define RUNTIME_ENTRY(name, nargs, ressize) \ |
| 149 { RUNTIME_FUNCTION, \ | 149 { RUNTIME_FUNCTION, \ |
| 150 Runtime::k##name, \ | 150 Runtime::k##name, \ |
| 151 "Runtime::" #name }, | 151 "Runtime::" #name }, |
| 152 | 152 |
| 153 RUNTIME_FUNCTION_LIST(RUNTIME_ENTRY) | 153 RUNTIME_FUNCTION_LIST(RUNTIME_ENTRY) |
| 154 INLINE_OPTIMIZED_FUNCTION_LIST(RUNTIME_ENTRY) | 154 INLINE_OPTIMIZED_FUNCTION_LIST(RUNTIME_ENTRY) |
| 155 #undef RUNTIME_ENTRY | 155 #undef RUNTIME_ENTRY |
| 156 | 156 |
| 157 #define RUNTIME_HIDDEN_ENTRY(name, nargs, ressize) \ | |
| 158 { RUNTIME_FUNCTION, \ | |
| 159 Runtime::kHidden##name, \ | |
| 160 "Runtime::Hidden" #name }, | |
| 161 | |
| 162 RUNTIME_HIDDEN_FUNCTION_LIST(RUNTIME_HIDDEN_ENTRY) | |
| 163 #undef RUNTIME_HIDDEN_ENTRY | |
| 164 | |
| 165 #define INLINE_OPTIMIZED_ENTRY(name, nargs, ressize) \ | 157 #define INLINE_OPTIMIZED_ENTRY(name, nargs, ressize) \ |
| 166 { RUNTIME_FUNCTION, \ | 158 { RUNTIME_FUNCTION, \ |
| 167 Runtime::kInlineOptimized##name, \ | 159 Runtime::kInlineOptimized##name, \ |
| 168 "Runtime::" #name }, | 160 "Runtime::" #name }, |
| 169 | 161 |
| 170 INLINE_OPTIMIZED_FUNCTION_LIST(INLINE_OPTIMIZED_ENTRY) | 162 INLINE_OPTIMIZED_FUNCTION_LIST(INLINE_OPTIMIZED_ENTRY) |
| 171 #undef INLINE_OPTIMIZED_ENTRY | 163 #undef INLINE_OPTIMIZED_ENTRY |
| 172 | 164 |
| 173 // IC utilities | 165 // IC utilities |
| 174 #define IC_ENTRY(name) \ | 166 #define IC_ENTRY(name) \ |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 50, | 445 50, |
| 454 "pending_message_script"); | 446 "pending_message_script"); |
| 455 Add(ExternalReference::get_make_code_young_function(isolate).address(), | 447 Add(ExternalReference::get_make_code_young_function(isolate).address(), |
| 456 UNCLASSIFIED, | 448 UNCLASSIFIED, |
| 457 51, | 449 51, |
| 458 "Code::MakeCodeYoung"); | 450 "Code::MakeCodeYoung"); |
| 459 Add(ExternalReference::cpu_features().address(), | 451 Add(ExternalReference::cpu_features().address(), |
| 460 UNCLASSIFIED, | 452 UNCLASSIFIED, |
| 461 52, | 453 52, |
| 462 "cpu_features"); | 454 "cpu_features"); |
| 463 Add(ExternalReference(Runtime::kHiddenAllocateInNewSpace, isolate).address(), | 455 Add(ExternalReference(Runtime::kAllocateInNewSpace, isolate).address(), |
| 464 UNCLASSIFIED, | 456 UNCLASSIFIED, |
| 465 53, | 457 53, |
| 466 "Runtime::AllocateInNewSpace"); | 458 "Runtime::AllocateInNewSpace"); |
| 467 Add(ExternalReference( | 459 Add(ExternalReference(Runtime::kAllocateInTargetSpace, isolate).address(), |
| 468 Runtime::kHiddenAllocateInTargetSpace, isolate).address(), | |
| 469 UNCLASSIFIED, | 460 UNCLASSIFIED, |
| 470 54, | 461 54, |
| 471 "Runtime::AllocateInTargetSpace"); | 462 "Runtime::AllocateInTargetSpace"); |
| 472 Add(ExternalReference::old_pointer_space_allocation_top_address( | 463 Add(ExternalReference::old_pointer_space_allocation_top_address( |
| 473 isolate).address(), | 464 isolate).address(), |
| 474 UNCLASSIFIED, | 465 UNCLASSIFIED, |
| 475 55, | 466 55, |
| 476 "Heap::OldPointerSpaceAllocationTopAddress"); | 467 "Heap::OldPointerSpaceAllocationTopAddress"); |
| 477 Add(ExternalReference::old_pointer_space_allocation_limit_address( | 468 Add(ExternalReference::old_pointer_space_allocation_limit_address( |
| 478 isolate).address(), | 469 isolate).address(), |
| (...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1814 } | 1805 } |
| 1815 | 1806 |
| 1816 | 1807 |
| 1817 void Serializer::InitializeCodeAddressMap() { | 1808 void Serializer::InitializeCodeAddressMap() { |
| 1818 isolate_->InitializeLoggingAndCounters(); | 1809 isolate_->InitializeLoggingAndCounters(); |
| 1819 code_address_map_ = new CodeAddressMap(isolate_); | 1810 code_address_map_ = new CodeAddressMap(isolate_); |
| 1820 } | 1811 } |
| 1821 | 1812 |
| 1822 | 1813 |
| 1823 } } // namespace v8::internal | 1814 } } // namespace v8::internal |
| OLD | NEW |