| 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/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
| (...skipping 3447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3458 Handle<PropertyCell> cell = factory->NewPropertyCell(); | 3458 Handle<PropertyCell> cell = factory->NewPropertyCell(); |
| 3459 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); | 3459 cell->set_value(Smi::FromInt(Isolate::kArrayProtectorValid)); |
| 3460 set_array_protector(*cell); | 3460 set_array_protector(*cell); |
| 3461 | 3461 |
| 3462 cell = factory->NewPropertyCell(); | 3462 cell = factory->NewPropertyCell(); |
| 3463 cell->set_value(the_hole_value()); | 3463 cell->set_value(the_hole_value()); |
| 3464 set_empty_property_cell(*cell); | 3464 set_empty_property_cell(*cell); |
| 3465 | 3465 |
| 3466 set_weak_stack_trace_list(Smi::FromInt(0)); | 3466 set_weak_stack_trace_list(Smi::FromInt(0)); |
| 3467 | 3467 |
| 3468 // Will be filled in by Interpreter::Initialize(). |
| 3469 set_interpreter_table(empty_fixed_array()); |
| 3470 |
| 3468 set_allocation_sites_scratchpad( | 3471 set_allocation_sites_scratchpad( |
| 3469 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); | 3472 *factory->NewFixedArray(kAllocationSiteScratchpadSize, TENURED)); |
| 3470 InitializeAllocationSitesScratchpad(); | 3473 InitializeAllocationSitesScratchpad(); |
| 3471 | 3474 |
| 3472 // Initialize keyed lookup cache. | 3475 // Initialize keyed lookup cache. |
| 3473 isolate_->keyed_lookup_cache()->Clear(); | 3476 isolate_->keyed_lookup_cache()->Clear(); |
| 3474 | 3477 |
| 3475 // Initialize context slot cache. | 3478 // Initialize context slot cache. |
| 3476 isolate_->context_slot_cache()->Clear(); | 3479 isolate_->context_slot_cache()->Clear(); |
| 3477 | 3480 |
| (...skipping 3440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6918 *object_type = "CODE_TYPE"; \ | 6921 *object_type = "CODE_TYPE"; \ |
| 6919 *object_sub_type = "CODE_AGE/" #name; \ | 6922 *object_sub_type = "CODE_AGE/" #name; \ |
| 6920 return true; | 6923 return true; |
| 6921 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) | 6924 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) |
| 6922 #undef COMPARE_AND_RETURN_NAME | 6925 #undef COMPARE_AND_RETURN_NAME |
| 6923 } | 6926 } |
| 6924 return false; | 6927 return false; |
| 6925 } | 6928 } |
| 6926 } // namespace internal | 6929 } // namespace internal |
| 6927 } // namespace v8 | 6930 } // namespace v8 |
| OLD | NEW |