|
Refactor type checks in v8natives.js and runtime.js.
This includes adding a new inline IsSpecObject method to the code
generator. The old approach was somehow ineffecient since we would
call both IsObject, IsUndetectable and IsFunction to determine if
something was an object according to the spec. This change introduces
a new macro that determines if something is an object according to the
spec (and this does not include null).
This change also corrects a few places where undetectable objects was
not allowed even when they should be (priorly they would use only
IS_SPEC_OBJECT_OR_NULL, which would return false on an undetectable
object, the new IS_SPEC_OBJECT returns true on an undetectable object.
Committed: http://code.google.com/p/v8/source/detail?r=5087
Total comments: 10
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+156 lines, -45 lines) |
Patch |
|
M |
src/arm/codegen-arm.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/arm/codegen-arm.cc
|
View
|
1
2
3
4
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/arm/full-codegen-arm.cc
|
View
|
1
2
3
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/codegen.h
|
View
|
2
3
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/full-codegen.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.cc
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/codegen-ia32.h
|
View
|
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/codegen-ia32.cc
|
View
|
2
3
4
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/ia32/full-codegen-ia32.cc
|
View
|
1
2
3
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/macros.py
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/mips/codegen-mips.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/mips/codegen-mips.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/runtime.js
|
View
|
1
2
3
4
|
5 chunks |
+9 lines, -13 lines |
0 comments
|
Download
|
|
M |
src/v8natives.js
|
View
|
1
2
3
|
15 chunks |
+16 lines, -30 lines |
0 comments
|
Download
|
|
M |
src/x64/codegen-x64.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/x64/codegen-x64.cc
|
View
|
1
2
3
4
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/x64/full-codegen-x64.cc
|
View
|
1
2
3
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|