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

Side by Side Diff: src/objects.h

Issue 1369123002: [Interpreter] Add interpreter support for compare ops and ToBoolean. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Incorporate review feedback from mstarzinger and rmcilroy. Created 5 years, 2 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/interpreter/interpreter.cc ('k') | src/runtime/runtime.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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 808
809 NOT_EQUAL = GREATER 809 NOT_EQUAL = GREATER
810 }; 810 };
811 811
812 812
813 // Result of an abstract relational comparison of x and y, implemented according 813 // Result of an abstract relational comparison of x and y, implemented according
814 // to ES6 section 7.2.11 Abstract Relational Comparison. 814 // to ES6 section 7.2.11 Abstract Relational Comparison.
815 enum class ComparisonResult { 815 enum class ComparisonResult {
816 kLessThan, // x < y 816 kLessThan, // x < y
817 kEqual, // x = y 817 kEqual, // x = y
818 kGreaterThan, // x > x 818 kGreaterThan, // x > y
819 kUndefined // at least one of x or y was undefined or NaN 819 kUndefined // at least one of x or y was undefined or NaN
820 }; 820 };
821 821
822 822
823 #define DECL_BOOLEAN_ACCESSORS(name) \ 823 #define DECL_BOOLEAN_ACCESSORS(name) \
824 inline bool name() const; \ 824 inline bool name() const; \
825 inline void set_##name(bool value); \ 825 inline void set_##name(bool value); \
826 826
827 827
828 #define DECL_ACCESSORS(name, type) \ 828 #define DECL_ACCESSORS(name, type) \
(...skipping 9743 matching lines...) Expand 10 before | Expand all | Expand 10 after
10572 10572
10573 Isolate* isolate_; 10573 Isolate* isolate_;
10574 Handle<FixedArray> keys_; 10574 Handle<FixedArray> keys_;
10575 Handle<OrderedHashSet> set_; 10575 Handle<OrderedHashSet> set_;
10576 int length_; 10576 int length_;
10577 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10577 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10578 }; 10578 };
10579 } } // namespace v8::internal 10579 } } // namespace v8::internal
10580 10580
10581 #endif // V8_OBJECTS_H_ 10581 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698