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

Side by Side Diff: src/objects.h

Issue 588573002: Optimize Function.prototype.call (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 6 years, 3 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
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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 6857 matching lines...) Expand 10 before | Expand all | Expand 10 after
6868 // 6868 //
6869 // Installation of ids for the selected builtin functions is handled 6869 // Installation of ids for the selected builtin functions is handled
6870 // by the bootstrapper. 6870 // by the bootstrapper.
6871 #define FUNCTIONS_WITH_ID_LIST(V) \ 6871 #define FUNCTIONS_WITH_ID_LIST(V) \
6872 V(Array.prototype, indexOf, ArrayIndexOf) \ 6872 V(Array.prototype, indexOf, ArrayIndexOf) \
6873 V(Array.prototype, lastIndexOf, ArrayLastIndexOf) \ 6873 V(Array.prototype, lastIndexOf, ArrayLastIndexOf) \
6874 V(Array.prototype, push, ArrayPush) \ 6874 V(Array.prototype, push, ArrayPush) \
6875 V(Array.prototype, pop, ArrayPop) \ 6875 V(Array.prototype, pop, ArrayPop) \
6876 V(Array.prototype, shift, ArrayShift) \ 6876 V(Array.prototype, shift, ArrayShift) \
6877 V(Function.prototype, apply, FunctionApply) \ 6877 V(Function.prototype, apply, FunctionApply) \
6878 V(Function.prototype, call, FunctionCall) \
6878 V(String.prototype, charCodeAt, StringCharCodeAt) \ 6879 V(String.prototype, charCodeAt, StringCharCodeAt) \
6879 V(String.prototype, charAt, StringCharAt) \ 6880 V(String.prototype, charAt, StringCharAt) \
6880 V(String, fromCharCode, StringFromCharCode) \ 6881 V(String, fromCharCode, StringFromCharCode) \
6881 V(Math, floor, MathFloor) \ 6882 V(Math, floor, MathFloor) \
6882 V(Math, round, MathRound) \ 6883 V(Math, round, MathRound) \
6883 V(Math, ceil, MathCeil) \ 6884 V(Math, ceil, MathCeil) \
6884 V(Math, abs, MathAbs) \ 6885 V(Math, abs, MathAbs) \
6885 V(Math, log, MathLog) \ 6886 V(Math, log, MathLog) \
6886 V(Math, exp, MathExp) \ 6887 V(Math, exp, MathExp) \
6887 V(Math, sqrt, MathSqrt) \ 6888 V(Math, sqrt, MathSqrt) \
(...skipping 4247 matching lines...) Expand 10 before | Expand all | Expand 10 after
11135 } else { 11136 } else {
11136 value &= ~(1 << bit_position); 11137 value &= ~(1 << bit_position);
11137 } 11138 }
11138 return value; 11139 return value;
11139 } 11140 }
11140 }; 11141 };
11141 11142
11142 } } // namespace v8::internal 11143 } } // namespace v8::internal
11143 11144
11144 #endif // V8_OBJECTS_H_ 11145 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698