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

Unified Diff: test/mjsunit/compiler/stubs/floor-stub.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: test/mjsunit/compiler/stubs/floor-stub.js
diff --git a/test/mjsunit/compiler/stubs/floor-stub.js b/test/mjsunit/compiler/stubs/floor-stub.js
index e3fc9b6003f6c1f8b59f565fe1a5b74f9f2c4d2a..2b2326a764c621bca01e571a200c4997d95eda2d 100644
--- a/test/mjsunit/compiler/stubs/floor-stub.js
+++ b/test/mjsunit/compiler/stubs/floor-stub.js
@@ -25,7 +25,9 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Flags: --allow-natives-syntax --expose-natives-as=builtins --noalways-opt
+// Flags: --allow-natives-syntax --noalways-opt
+
+var stubs = %GetCodeStubExportsObject();
const kExtraTypeFeedbackMinusZeroSentinel = 1;
const kFirstSlotExtraTypeFeedbackIndex = 5;
@@ -36,7 +38,7 @@ const kFirstSlotExtraTypeFeedbackIndex = 5;
}
// Execute the function once to make sure it has a type feedback vector.
floorFunc(5);
- var stub = builtins.MathFloorStub("MathFloorStub", 0);
+ var stub = stubs.MathFloorStub("MathFloorStub", 0);
assertTrue(kExtraTypeFeedbackMinusZeroSentinel !==
%FixedArrayGet(%GetTypeFeedbackVector(floorFunc),
kFirstSlotExtraTypeFeedbackIndex));

Powered by Google App Engine
This is Rietveld 408576698