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

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

Issue 1744163002: [stubs] Introduce a proper ToBooleanStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips Created 4 years, 9 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 | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/heap/heap.cc » ('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 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 645
646 // Trim the given array from the left. Note that this relocates the object 646 // Trim the given array from the left. Note that this relocates the object
647 // start and hence is only valid if there is only a single reference to it. 647 // start and hence is only valid if there is only a single reference to it.
648 FixedArrayBase* LeftTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); 648 FixedArrayBase* LeftTrimFixedArray(FixedArrayBase* obj, int elements_to_trim);
649 649
650 // Trim the given array from the right. 650 // Trim the given array from the right.
651 template<Heap::InvocationMode mode> 651 template<Heap::InvocationMode mode>
652 void RightTrimFixedArray(FixedArrayBase* obj, int elements_to_trim); 652 void RightTrimFixedArray(FixedArrayBase* obj, int elements_to_trim);
653 653
654 // Converts the given boolean condition to JavaScript boolean value. 654 // Converts the given boolean condition to JavaScript boolean value.
655 inline Object* ToBoolean(bool condition); 655 inline Oddball* ToBoolean(bool condition);
656 656
657 // Check whether the heap is currently iterable. 657 // Check whether the heap is currently iterable.
658 bool IsHeapIterable(); 658 bool IsHeapIterable();
659 659
660 // Notify the heap that a context has been disposed. 660 // Notify the heap that a context has been disposed.
661 int NotifyContextDisposed(bool dependant_context); 661 int NotifyContextDisposed(bool dependant_context);
662 662
663 void set_native_contexts_list(Object* object) { 663 void set_native_contexts_list(Object* object) {
664 native_contexts_list_ = object; 664 native_contexts_list_ = object;
665 } 665 }
(...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after
2624 friend class LargeObjectSpace; 2624 friend class LargeObjectSpace;
2625 friend class NewSpace; 2625 friend class NewSpace;
2626 friend class PagedSpace; 2626 friend class PagedSpace;
2627 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2627 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2628 }; 2628 };
2629 2629
2630 } // namespace internal 2630 } // namespace internal
2631 } // namespace v8 2631 } // namespace v8
2632 2632
2633 #endif // V8_HEAP_HEAP_H_ 2633 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698