Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Side by Side Diff: src/heap/heap.cc

Issue 1694403002: [runtime] Move heap-object type check helpers to HeapObject with wrapper on Object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: drop the dcheck Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/mark-compact-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698