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

Unified Diff: test/mjsunit/harmony/debug-blockscopes.js

Issue 7830036: Optimize isFinite and isNaN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Made the change general by moving putting it in the NUMBER_IS_FINITE macro. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/builtins.js ('k') | test/mjsunit/parse-int-float.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/debug-blockscopes.js
diff --git a/test/mjsunit/harmony/debug-blockscopes.js b/test/mjsunit/harmony/debug-blockscopes.js
index d02c9f6a8e9257e980faa52a9727ad509cc4baa2..e0df71b2dfe9a6df1898b3d0446a889934312e0b 100644
--- a/test/mjsunit/harmony/debug-blockscopes.js
+++ b/test/mjsunit/harmony/debug-blockscopes.js
@@ -202,15 +202,17 @@ function local_block_1() {
}
listener_delegate = function(exec_state) {
- CheckScopeChain([debug.ScopeType.Local,
+ CheckScopeChain([debug.ScopeType.Block,
+ debug.ScopeType.Local,
debug.ScopeType.Global], exec_state);
CheckScopeContent({}, 0, exec_state);
+ CheckScopeContent({}, 1, exec_state);
};
local_block_1();
EndTest();
-// Simple empty block scope in local scope with a parameter.
+// Local scope with a parameter.
BeginTest("Local 2");
function local_2(a) {
@@ -220,9 +222,10 @@ function local_2(a) {
}
listener_delegate = function(exec_state) {
- CheckScopeChain([debug.ScopeType.Local,
+ CheckScopeChain([debug.ScopeType.Block,
+ debug.ScopeType.Local,
debug.ScopeType.Global], exec_state);
- CheckScopeContent({a:1}, 0, exec_state);
+ CheckScopeContent({a:1}, 1, exec_state);
};
local_2(1);
EndTest();
@@ -263,72 +266,6 @@ local_4(1, 2);
EndTest();
-// Single variable in a block scope.
-BeginTest("Local 5");
-
-function local_5(a) {
- {
- let x = 5;
- debugger;
- }
-}
-
-listener_delegate = function(exec_state) {
- CheckScopeChain([debug.ScopeType.Block,
- debug.ScopeType.Local,
- debug.ScopeType.Global], exec_state);
- CheckScopeContent({x:5}, 0, exec_state);
- CheckScopeContent({a:1}, 1, exec_state);
-};
-local_5(1);
-EndTest();
-
-
-// Two variables in a block scope.
-BeginTest("Local 6");
-
-function local_6(a) {
- {
- let x = 6;
- let y = 7;
- debugger;
- }
-}
-
-listener_delegate = function(exec_state) {
- CheckScopeChain([debug.ScopeType.Block,
- debug.ScopeType.Local,
- debug.ScopeType.Global], exec_state);
- CheckScopeContent({x:6,y:7}, 0, exec_state);
- CheckScopeContent({a:1}, 1, exec_state);
-};
-local_6(1);
-EndTest();
-
-
-// Two variables in a block scope.
-BeginTest("Local 7");
-
-function local_7(a) {
- {
- {
- let x = 8;
- debugger;
- }
- }
-}
-
-listener_delegate = function(exec_state) {
- CheckScopeChain([debug.ScopeType.Block,
- debug.ScopeType.Local,
- debug.ScopeType.Global], exec_state);
- CheckScopeContent({x:8}, 0, exec_state);
- CheckScopeContent({a:1}, 1, exec_state);
-};
-local_7(1);
-EndTest();
-
-
// Single empty with block.
BeginTest("With block 1");
@@ -339,7 +276,8 @@ function with_block_1() {
}
listener_delegate = function(exec_state) {
- CheckScopeChain([debug.ScopeType.With,
+ CheckScopeChain([debug.ScopeType.Block,
+ debug.ScopeType.With,
debug.ScopeType.Local,
debug.ScopeType.Global], exec_state);
CheckScopeContent({}, 0, exec_state);
@@ -361,13 +299,16 @@ function with_block_2() {
}
listener_delegate = function(exec_state) {
- CheckScopeChain([debug.ScopeType.With,
+ CheckScopeChain([debug.ScopeType.Block,
+ debug.ScopeType.With,
+ debug.ScopeType.Block,
debug.ScopeType.With,
debug.ScopeType.Local,
debug.ScopeType.Global], exec_state);
CheckScopeContent({}, 0, exec_state);
CheckScopeContent({}, 1, exec_state);
CheckScopeContent({}, 2, exec_state);
+ CheckScopeContent({}, 3, exec_state);
};
with_block_2();
EndTest();
@@ -383,10 +324,12 @@ function with_block_3() {
}
listener_delegate = function(exec_state) {
- CheckScopeChain([debug.ScopeType.With,
+ CheckScopeChain([debug.ScopeType.Block,
+ debug.ScopeType.With,
debug.ScopeType.Local,
debug.ScopeType.Global], exec_state);
- CheckScopeContent({a:1,b:2}, 0, exec_state);
+ CheckScopeContent({}, 0, exec_state);
+ CheckScopeContent({a:1,b:2}, 1, exec_state);
};
with_block_3();
EndTest();
@@ -404,12 +347,14 @@ function with_block_4() {
}
listener_delegate = function(exec_state) {
- CheckScopeChain([debug.ScopeType.With,
+ CheckScopeChain([debug.ScopeType.Block,
+ debug.ScopeType.With,
+ debug.ScopeType.Block,
debug.ScopeType.With,
debug.ScopeType.Local,
debug.ScopeType.Global], exec_state);
- CheckScopeContent({a:2,b:1}, 0, exec_state);
- CheckScopeContent({a:1,b:2}, 1, exec_state);
+ CheckScopeContent({a:2,b:1}, 1, exec_state);
+ CheckScopeContent({a:1,b:2}, 3, exec_state);
};
with_block_4();
EndTest();
« no previous file with comments | « test/mjsunit/builtins.js ('k') | test/mjsunit/parse-int-float.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698