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

Side by Side Diff: src/objects.h

Issue 1306043003: Move runtime helper for ToName conversion onto Object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-heap-friends
Patch Set: Minor fixup. Created 5 years, 3 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/api.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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 1067
1068 bool BooleanValue(); // ECMA-262 9.2. 1068 bool BooleanValue(); // ECMA-262 9.2.
1069 1069
1070 // ES6 section 7.2.13 Strict Equality Comparison 1070 // ES6 section 7.2.13 Strict Equality Comparison
1071 bool StrictEquals(Object* that); 1071 bool StrictEquals(Object* that);
1072 1072
1073 // Convert to a JSObject if needed. 1073 // Convert to a JSObject if needed.
1074 // native_context is used when creating wrapper object. 1074 // native_context is used when creating wrapper object.
1075 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate, 1075 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate,
1076 Handle<Object> object); 1076 Handle<Object> object);
1077 static MaybeHandle<JSReceiver> ToObject(Isolate* isolate, 1077 MUST_USE_RESULT static MaybeHandle<JSReceiver> ToObject(
1078 Handle<Object> object, 1078 Isolate* isolate, Handle<Object> object, Handle<Context> context);
1079 Handle<Context> context); 1079
1080 // Convert to a Name if needed.
1081 MUST_USE_RESULT static MaybeHandle<Name> ToName(Isolate* isolate,
1082 Handle<Object> object);
1080 1083
1081 MUST_USE_RESULT static MaybeHandle<Object> GetProperty( 1084 MUST_USE_RESULT static MaybeHandle<Object> GetProperty(
1082 LookupIterator* it, LanguageMode language_mode = SLOPPY); 1085 LookupIterator* it, LanguageMode language_mode = SLOPPY);
1083 1086
1084 // Implementation of [[Put]], ECMA-262 5th edition, section 8.12.5. 1087 // Implementation of [[Put]], ECMA-262 5th edition, section 8.12.5.
1085 MUST_USE_RESULT static MaybeHandle<Object> SetProperty( 1088 MUST_USE_RESULT static MaybeHandle<Object> SetProperty(
1086 Handle<Object> object, Handle<Name> name, Handle<Object> value, 1089 Handle<Object> object, Handle<Name> name, Handle<Object> value,
1087 LanguageMode language_mode, 1090 LanguageMode language_mode,
1088 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED); 1091 StoreFromKeyed store_mode = MAY_BE_STORE_FROM_KEYED);
1089 1092
(...skipping 9245 matching lines...) Expand 10 before | Expand all | Expand 10 after
10335 } else { 10338 } else {
10336 value &= ~(1 << bit_position); 10339 value &= ~(1 << bit_position);
10337 } 10340 }
10338 return value; 10341 return value;
10339 } 10342 }
10340 }; 10343 };
10341 10344
10342 } } // namespace v8::internal 10345 } } // namespace v8::internal
10343 10346
10344 #endif // V8_OBJECTS_H_ 10347 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698