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

Side by Side Diff: src/objects.h

Issue 982793002: Don't double-allocate mutable heap numbers in the json parser. This removes some stupidity when com… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/json-parser.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 // 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 2062 matching lines...) Expand 10 before | Expand all | Expand 10 after
2073 // Access fast-case object properties at index. 2073 // Access fast-case object properties at index.
2074 static Handle<Object> FastPropertyAt(Handle<JSObject> object, 2074 static Handle<Object> FastPropertyAt(Handle<JSObject> object,
2075 Representation representation, 2075 Representation representation,
2076 FieldIndex index); 2076 FieldIndex index);
2077 inline Object* RawFastPropertyAt(FieldIndex index); 2077 inline Object* RawFastPropertyAt(FieldIndex index);
2078 inline double RawFastDoublePropertyAt(FieldIndex index); 2078 inline double RawFastDoublePropertyAt(FieldIndex index);
2079 2079
2080 inline void FastPropertyAtPut(FieldIndex index, Object* value); 2080 inline void FastPropertyAtPut(FieldIndex index, Object* value);
2081 inline void RawFastPropertyAtPut(FieldIndex index, Object* value); 2081 inline void RawFastPropertyAtPut(FieldIndex index, Object* value);
2082 inline void RawFastDoublePropertyAtPut(FieldIndex index, double value); 2082 inline void RawFastDoublePropertyAtPut(FieldIndex index, double value);
2083 void WriteToField(int descriptor, Object* value); 2083 inline void WriteToField(int descriptor, Object* value);
2084 2084
2085 // Access to in object properties. 2085 // Access to in object properties.
2086 inline int GetInObjectPropertyOffset(int index); 2086 inline int GetInObjectPropertyOffset(int index);
2087 inline Object* InObjectPropertyAt(int index); 2087 inline Object* InObjectPropertyAt(int index);
2088 inline Object* InObjectPropertyAtPut(int index, 2088 inline Object* InObjectPropertyAtPut(int index,
2089 Object* value, 2089 Object* value,
2090 WriteBarrierMode mode 2090 WriteBarrierMode mode
2091 = UPDATE_WRITE_BARRIER); 2091 = UPDATE_WRITE_BARRIER);
2092 2092
2093 // Set the object's prototype (only JSReceiver and null are allowed values). 2093 // Set the object's prototype (only JSReceiver and null are allowed values).
(...skipping 8889 matching lines...) Expand 10 before | Expand all | Expand 10 after
10983 } else { 10983 } else {
10984 value &= ~(1 << bit_position); 10984 value &= ~(1 << bit_position);
10985 } 10985 }
10986 return value; 10986 return value;
10987 } 10987 }
10988 }; 10988 };
10989 10989
10990 } } // namespace v8::internal 10990 } } // namespace v8::internal
10991 10991
10992 #endif // V8_OBJECTS_H_ 10992 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/json-parser.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698