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

Side by Side Diff: src/objects.h

Issue 1509533003: Rewrite Object.prototype.toString in C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase, add back experimental flag Created 5 years 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/js/v8natives.js ('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 2453 matching lines...) Expand 10 before | Expand all | Expand 10 after
2464 // Gets the number of currently used elements. 2464 // Gets the number of currently used elements.
2465 int GetFastElementsUsage(); 2465 int GetFastElementsUsage();
2466 2466
2467 // Deletes an existing named property in a normalized object. 2467 // Deletes an existing named property in a normalized object.
2468 static void DeleteNormalizedProperty(Handle<JSObject> object, 2468 static void DeleteNormalizedProperty(Handle<JSObject> object,
2469 Handle<Name> name, int entry); 2469 Handle<Name> name, int entry);
2470 2470
2471 static bool AllCanRead(LookupIterator* it); 2471 static bool AllCanRead(LookupIterator* it);
2472 static bool AllCanWrite(LookupIterator* it); 2472 static bool AllCanWrite(LookupIterator* it);
2473 2473
2474 // ES6 19.1.3.6 Object.prototype.toString
2475 MUST_USE_RESULT static MaybeHandle<String> ObjectProtoToString(
2476 Isolate* isolate, Handle<Object> object);
2477
2474 private: 2478 private:
2475 friend class JSReceiver; 2479 friend class JSReceiver;
2476 friend class Object; 2480 friend class Object;
2477 2481
2478 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map); 2482 static void MigrateFastToFast(Handle<JSObject> object, Handle<Map> new_map);
2479 static void MigrateFastToSlow(Handle<JSObject> object, 2483 static void MigrateFastToSlow(Handle<JSObject> object,
2480 Handle<Map> new_map, 2484 Handle<Map> new_map,
2481 int expected_additional_properties); 2485 int expected_additional_properties);
2482 2486
2483 // Used from Object::GetProperty(). 2487 // Used from Object::GetProperty().
(...skipping 8211 matching lines...) Expand 10 before | Expand all | Expand 10 after
10695 } 10699 }
10696 return value; 10700 return value;
10697 } 10701 }
10698 }; 10702 };
10699 10703
10700 10704
10701 } // NOLINT, false-positive due to second-order macros. 10705 } // NOLINT, false-positive due to second-order macros.
10702 } // NOLINT, false-positive due to second-order macros. 10706 } // NOLINT, false-positive due to second-order macros.
10703 10707
10704 #endif // V8_OBJECTS_H_ 10708 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/js/v8natives.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698