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/heap/heap.h" | 5 #include "src/heap/heap.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/ast/scopeinfo.h" | 9 #include "src/ast/scopeinfo.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 2625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2636 "undefined", Oddball::kTheHole)); | 2636 "undefined", Oddball::kTheHole)); |
2637 | 2637 |
2638 set_uninitialized_value( | 2638 set_uninitialized_value( |
2639 *factory->NewOddball(factory->uninitialized_map(), "uninitialized", | 2639 *factory->NewOddball(factory->uninitialized_map(), "uninitialized", |
2640 handle(Smi::FromInt(-1), isolate()), "undefined", | 2640 handle(Smi::FromInt(-1), isolate()), "undefined", |
2641 Oddball::kUninitialized)); | 2641 Oddball::kUninitialized)); |
2642 | 2642 |
2643 set_arguments_marker( | 2643 set_arguments_marker( |
2644 *factory->NewOddball(factory->arguments_marker_map(), "arguments_marker", | 2644 *factory->NewOddball(factory->arguments_marker_map(), "arguments_marker", |
2645 handle(Smi::FromInt(-4), isolate()), "undefined", | 2645 handle(Smi::FromInt(-4), isolate()), "undefined", |
2646 Oddball::kArgumentMarker)); | 2646 Oddball::kArgumentsMarker)); |
2647 | 2647 |
2648 set_no_interceptor_result_sentinel(*factory->NewOddball( | 2648 set_no_interceptor_result_sentinel(*factory->NewOddball( |
2649 factory->no_interceptor_result_sentinel_map(), | 2649 factory->no_interceptor_result_sentinel_map(), |
2650 "no_interceptor_result_sentinel", handle(Smi::FromInt(-2), isolate()), | 2650 "no_interceptor_result_sentinel", handle(Smi::FromInt(-2), isolate()), |
2651 "undefined", Oddball::kOther)); | 2651 "undefined", Oddball::kOther)); |
2652 | 2652 |
2653 set_termination_exception(*factory->NewOddball( | 2653 set_termination_exception(*factory->NewOddball( |
2654 factory->termination_exception_map(), "termination_exception", | 2654 factory->termination_exception_map(), "termination_exception", |
2655 handle(Smi::FromInt(-3), isolate()), "undefined", Oddball::kOther)); | 2655 handle(Smi::FromInt(-3), isolate()), "undefined", Oddball::kOther)); |
2656 | 2656 |
(...skipping 3606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6263 } | 6263 } |
6264 | 6264 |
6265 | 6265 |
6266 // static | 6266 // static |
6267 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6267 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6268 return StaticVisitorBase::GetVisitorId(map); | 6268 return StaticVisitorBase::GetVisitorId(map); |
6269 } | 6269 } |
6270 | 6270 |
6271 } // namespace internal | 6271 } // namespace internal |
6272 } // namespace v8 | 6272 } // namespace v8 |
OLD | NEW |