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

Side by Side Diff: src/accessors.h

Issue 1195823002: Add fast path for setting length (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | src/accessors.cc » ('j') | src/accessors.cc » ('J')
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_ACCESSORS_H_ 5 #ifndef V8_ACCESSORS_H_
6 #define V8_ACCESSORS_H_ 6 #define V8_ACCESSORS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 static Handle<AccessorInfo> MakeAccessor( 91 static Handle<AccessorInfo> MakeAccessor(
92 Isolate* isolate, 92 Isolate* isolate,
93 Handle<Name> name, 93 Handle<Name> name,
94 AccessorNameGetterCallback getter, 94 AccessorNameGetterCallback getter,
95 AccessorNameSetterCallback setter, 95 AccessorNameSetterCallback setter,
96 PropertyAttributes attributes); 96 PropertyAttributes attributes);
97 97
98 static Handle<ExecutableAccessorInfo> CloneAccessor( 98 static Handle<ExecutableAccessorInfo> CloneAccessor(
99 Isolate* isolate, 99 Isolate* isolate,
100 Handle<ExecutableAccessorInfo> accessor); 100 Handle<ExecutableAccessorInfo> accessor);
101
102
103 private:
104 // Helper functions.
105 static Handle<Object> FlattenNumber(Isolate* isolate, Handle<Object> value);
106 }; 101 };
107 102
108 } } // namespace v8::internal 103 } } // namespace v8::internal
109 104
110 #endif // V8_ACCESSORS_H_ 105 #endif // V8_ACCESSORS_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | src/accessors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698