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

Side by Side Diff: src/objects.h

Issue 235943007: Handlify Object::ToObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/json-stringifier.h ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1518 // implementation of a JSObject's elements. 1518 // implementation of a JSObject's elements.
1519 inline bool HasValidElements(); 1519 inline bool HasValidElements();
1520 1520
1521 inline bool HasSpecificClassOf(String* name); 1521 inline bool HasSpecificClassOf(String* name);
1522 1522
1523 MUST_USE_RESULT MaybeObject* ToObject(Isolate* isolate); // ECMA-262 9.9. 1523 MUST_USE_RESULT MaybeObject* ToObject(Isolate* isolate); // ECMA-262 9.9.
1524 bool BooleanValue(); // ECMA-262 9.2. 1524 bool BooleanValue(); // ECMA-262 9.2.
1525 1525
1526 // Convert to a JSObject if needed. 1526 // Convert to a JSObject if needed.
1527 // native_context is used when creating wrapper object. 1527 // native_context is used when creating wrapper object.
1528 MUST_USE_RESULT MaybeObject* ToObject(Context* native_context); 1528 static inline MaybeHandle<JSReceiver> ToObject(Isolate* isolate,
1529 Handle<Object> object);
1530 static MaybeHandle<JSReceiver> ToObject(Isolate* isolate,
1531 Handle<Object> object,
1532 Handle<Context> context);
1529 1533
1530 // Converts this to a Smi if possible. 1534 // Converts this to a Smi if possible.
1531 // Failure is returned otherwise. 1535 // Failure is returned otherwise.
1532 static MUST_USE_RESULT inline Handle<Object> ToSmi(Isolate* isolate, 1536 static MUST_USE_RESULT inline Handle<Object> ToSmi(Isolate* isolate,
1533 Handle<Object> object); 1537 Handle<Object> object);
1534 MUST_USE_RESULT inline MaybeObject* ToSmi(); 1538 MUST_USE_RESULT inline MaybeObject* ToSmi();
1535 1539
1536 void Lookup(Name* name, LookupResult* result); 1540 void Lookup(Name* name, LookupResult* result);
1537 1541
1538 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithReceiver( 1542 MUST_USE_RESULT static MaybeHandle<Object> GetPropertyWithReceiver(
(...skipping 9501 matching lines...) Expand 10 before | Expand all | Expand 10 after
11040 } else { 11044 } else {
11041 value &= ~(1 << bit_position); 11045 value &= ~(1 << bit_position);
11042 } 11046 }
11043 return value; 11047 return value;
11044 } 11048 }
11045 }; 11049 };
11046 11050
11047 } } // namespace v8::internal 11051 } } // namespace v8::internal
11048 11052
11049 #endif // V8_OBJECTS_H_ 11053 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/json-stringifier.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698