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

Side by Side Diff: src/objects.h

Issue 279743002: Improve Array.shift() performance for small arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Cosmetic fix Created 6 years, 7 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/ia32/lithium-ia32.cc ('k') | src/x64/code-stubs-x64.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 "allocation.h" 8 #include "allocation.h"
9 #include "assert-scope.h" 9 #include "assert-scope.h"
10 #include "builtins.h" 10 #include "builtins.h"
(...skipping 6792 matching lines...) Expand 10 before | Expand all | Expand 10 after
6803 // 6803 //
6804 // Each entry has a name of a global object property holding an object 6804 // Each entry has a name of a global object property holding an object
6805 // optionally followed by ".prototype", a name of a builtin function 6805 // optionally followed by ".prototype", a name of a builtin function
6806 // on the object (the one the id is set for), and a label. 6806 // on the object (the one the id is set for), and a label.
6807 // 6807 //
6808 // Installation of ids for the selected builtin functions is handled 6808 // Installation of ids for the selected builtin functions is handled
6809 // by the bootstrapper. 6809 // by the bootstrapper.
6810 #define FUNCTIONS_WITH_ID_LIST(V) \ 6810 #define FUNCTIONS_WITH_ID_LIST(V) \
6811 V(Array.prototype, push, ArrayPush) \ 6811 V(Array.prototype, push, ArrayPush) \
6812 V(Array.prototype, pop, ArrayPop) \ 6812 V(Array.prototype, pop, ArrayPop) \
6813 V(Array.prototype, shift, ArrayShift) \
6813 V(Function.prototype, apply, FunctionApply) \ 6814 V(Function.prototype, apply, FunctionApply) \
6814 V(String.prototype, charCodeAt, StringCharCodeAt) \ 6815 V(String.prototype, charCodeAt, StringCharCodeAt) \
6815 V(String.prototype, charAt, StringCharAt) \ 6816 V(String.prototype, charAt, StringCharAt) \
6816 V(String, fromCharCode, StringFromCharCode) \ 6817 V(String, fromCharCode, StringFromCharCode) \
6817 V(Math, floor, MathFloor) \ 6818 V(Math, floor, MathFloor) \
6818 V(Math, round, MathRound) \ 6819 V(Math, round, MathRound) \
6819 V(Math, ceil, MathCeil) \ 6820 V(Math, ceil, MathCeil) \
6820 V(Math, abs, MathAbs) \ 6821 V(Math, abs, MathAbs) \
6821 V(Math, log, MathLog) \ 6822 V(Math, log, MathLog) \
6822 V(Math, exp, MathExp) \ 6823 V(Math, exp, MathExp) \
(...skipping 4296 matching lines...) Expand 10 before | Expand all | Expand 10 after
11119 } else { 11120 } else {
11120 value &= ~(1 << bit_position); 11121 value &= ~(1 << bit_position);
11121 } 11122 }
11122 return value; 11123 return value;
11123 } 11124 }
11124 }; 11125 };
11125 11126
11126 } } // namespace v8::internal 11127 } } // namespace v8::internal
11127 11128
11128 #endif // V8_OBJECTS_H_ 11129 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698