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

Issue 660084: Optimize 3 Number2Integer functions in runtime.cc: remove the check that was ... (Closed)

Created:
10 years, 10 months ago by Oleg Eterevsky
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Optimize three Number2Integer functions in runtime.cc: remove the check that was already done in JavaScript, add simpler code in case we are getting a SMI result.

Patch Set 1 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -9 lines) Patch
M src/runtime.cc View 3 chunks +12 lines, -9 lines 8 comments Download

Messages

Total messages: 4 (0 generated)
Oleg Eterevsky
10 years, 10 months ago (2010-02-25 14:57:38 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/660084/diff/1/2 File src/runtime.cc (right): http://codereview.chromium.org/660084/diff/1/2#newcode4157 src/runtime.cc:4157: // We do not include 0 so that ...
10 years, 10 months ago (2010-02-25 15:11:03 UTC) #2
Oleg Eterevsky
http://codereview.chromium.org/660084/diff/1/2 File src/runtime.cc (right): http://codereview.chromium.org/660084/diff/1/2#newcode4157 src/runtime.cc:4157: // We do not include 0 so that we ...
10 years, 10 months ago (2010-02-25 15:30:43 UTC) #3
William Hesse
10 years, 10 months ago (2010-02-25 18:09:44 UTC) #4
This change fails to compile on MacOS in debug mode, with the error:

g++ -o obj/debug/runtime.o -c -Wall -Werror -W -Wno-unused-parameter
-Wnon-virtual-dtor -pedantic -m32 -g -O0 -ansi -mmacosx-version-min=10.4
-fno-rtti -fno-exceptions -fvisibility=hidden -Wall -Werror -W
-Wno-unused-parameter -Wnon-virtual-dtor -pedantic -m32 -g -O0 -ansi
-mmacosx-version-min=10.4 -DV8_TARGET_ARCH_IA32 -DENABLE_DISASSEMBLER -DDEBUG
-DENABLE_DEBUGGER_SUPPORT -DV8_NATIVE_REGEXP -DV8_ENABLE_CHECKS
-DENABLE_LOGGING_AND_PROFILING -Isrc src/runtime.cc
cc1plus: warnings being treated as errors
src/runtime.cc: In function 'v8::internal::Object*
v8::internal::Runtime_NumberToJSInt32(v8::internal::Arguments)':
src/runtime.cc:4187: warning: control reaches end of non-void function
src/runtime.cc: In function 'v8::internal::Object*
v8::internal::Runtime_NumberToInteger(v8::internal::Arguments)':
src/runtime.cc:4163: warning: control reaches end of non-void function
scons: *** [obj/debug/runtime.o] Error 1
scons: done building targets (errors occurred during build).
program finished with exit code 2
elapsedTime=5.347686

Powered by Google App Engine
This is Rietveld 408576698