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

Side by Side Diff: src/objects.h

Issue 1365503005: [es6] Fix invalid ToString in implementation of ToName. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Meh! 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/full-codegen/x64/full-codegen-x64.cc ('k') | src/objects.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_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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 bool StrictEquals(Object* that); 1106 bool StrictEquals(Object* that);
1107 1107
1108 // Convert to a JSObject if needed. 1108 // Convert to a JSObject if needed.
1109 // native_context is used when creating wrapper object. 1109 // native_context is used when creating wrapper object.
1110 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, 1110 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate,
1111 Handle<Object> object); 1111 Handle<Object> object);
1112 MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject( 1112 MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject(
1113 Isolate* isolate, Handle<Object> object, Handle<Context> context); 1113 Isolate* isolate, Handle<Object> object, Handle<Context> context);
1114 1114
1115 // ES6 section 7.1.14 ToPropertyKey 1115 // ES6 section 7.1.14 ToPropertyKey
1116 MUST_USE_RESULT static inline MaybeHandle<Name> ToName(Isolate* isolate, 1116 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate,
1117 Handle<Object> input); 1117 Handle<Object> input);
1118 1118
1119 // ES6 section 7.1.1 ToPrimitive 1119 // ES6 section 7.1.1 ToPrimitive
1120 MUST_USE_RESULT static inline MaybeHandle<Object> ToPrimitive( 1120 MUST_USE_RESULT static inline MaybeHandle<Object> ToPrimitive(
1121 Handle<Object> input, ToPrimitiveHint hint = ToPrimitiveHint::kDefault); 1121 Handle<Object> input, ToPrimitiveHint hint = ToPrimitiveHint::kDefault);
1122 1122
1123 // ES6 section 7.1.3 ToNumber 1123 // ES6 section 7.1.3 ToNumber
1124 MUST_USE_RESULT static MaybeHandle<Object> ToNumber(Handle<Object> input); 1124 MUST_USE_RESULT static MaybeHandle<Object> ToNumber(Handle<Object> input);
1125 1125
1126 // ES6 section 7.1.12 ToString 1126 // ES6 section 7.1.12 ToString
1127 MUST_USE_RESULT static MaybeHandle<String> ToString(Isolate* isolate, 1127 MUST_USE_RESULT static MaybeHandle<String> ToString(Isolate* isolate,
(...skipping 9444 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/full-codegen/x64/full-codegen-x64.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698