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

Unified Diff: src/runtime.js

Issue 1213203007: Create a internal, global native context used only for generated code stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merge with latest Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: src/runtime.js
diff --git a/src/runtime.js b/src/runtime.js
index fa71432883a8c7d883741db0f26f58e356158c84..e5ac2210528c7ef46d58f05de1cb0b41468498c2 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -63,10 +63,6 @@ var TO_NUMBER;
var TO_STRING;
var TO_NAME;
-var StringLengthTFStub;
-var StringAddTFStub;
-var MathFloorStub;
-
var $defaultNumber;
var $defaultString;
var $NaN;
@@ -751,52 +747,6 @@ TO_NAME = function TO_NAME() {
}
-/* -----------------------------------------------
- - - - J a v a S c r i p t S t u b s - - -
- -----------------------------------------------
-*/
-
-StringLengthTFStub = function StringLengthTFStub(call_conv, minor_key) {
- var stub = function(receiver, name, i, v) {
- // i and v are dummy parameters mandated by the InterfaceDescriptor,
- // (LoadWithVectorDescriptor).
- return %_StringGetLength(%_JSValueGetValue(receiver));
- }
- return stub;
-}
-
-StringAddTFStub = function StringAddTFStub(call_conv, minor_key) {
- var stub = function(left, right) {
- return %StringAdd(left, right);
- }
- return stub;
-}
-
-MathFloorStub = function MathFloorStub(call_conv, minor_key) {
- var stub = function(f, i, v) {
- // |f| is calling function's JSFunction
- // |i| is TypeFeedbackVector slot # of callee's CallIC for Math.floor call
- // |v| is the value to floor
- var r = %_MathFloor(+v);
- if (%_IsMinusZero(r)) {
- // Collect type feedback when the result of the floor is -0. This is
- // accomplished by storing a sentinel in the second, "extra"
- // TypeFeedbackVector slot corresponding to the Math.floor CallIC call in
- // the caller's TypeVector.
- %_FixedArraySet(%_GetTypeFeedbackVector(f), ((i|0)+1)|0, 1);
- return -0;
- }
- // Return integers in smi range as smis.
- var trunc = r|0;
- if (trunc === r) {
- return trunc;
- }
- return r;
- }
- return stub;
-}
-
-
/* -------------------------------------
- - - C o n v e r s i o n s - - -
-------------------------------------

Powered by Google App Engine
This is Rietveld 408576698