Reviewers: Mads Ager,
Description:
Fix Mac build of r4860
Build error:
test/cctest/test-api.cc: In function 'void
ExternalArrayInfoTestHelper(v8::ExternalArrayType)':
test/cctest/test-api.cc:10069: warning: control may reach end of non-void
function 'int ExternalArrayElementSize(v8::ExternalArrayType)' being inlined
[email protected]
Please review this at http://codereview.chromium.org/2826002/show
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/codegen.cc
M test/cctest/test-api.cc
Index: src/codegen.cc
===================================================================
--- src/codegen.cc (revision 4855)
+++ src/codegen.cc (working copy)
@@ -435,7 +435,7 @@
void CodeGenerator::CodeForReturnPosition(FunctionLiteral* fun) {
- if (FLAG_debug_info) RecordPositions(masm(), fun->end_position(), false);
+ //if (FLAG_debug_info) RecordPositions(masm(), fun->end_position(),
false);
}
Index: test/cctest/test-api.cc
===================================================================
--- test/cctest/test-api.cc (revision 4860)
+++ test/cctest/test-api.cc (working copy)
@@ -9671,6 +9671,8 @@
UNREACHABLE();
return -1;
}
+ UNREACHABLE();
+ return -1;
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev