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

Issue 363093004: Use Object::null_object() instead of Object::ZoneHandle() when a null object (Closed)

Created:
6 years, 5 months ago by siva
Modified:
6 years, 5 months ago
Reviewers:
zra, srdjan, hausner
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Use Object::null_object() instead of Object::ZoneHandle() when a null object handle is desired. This is more efficient as it does not result in allocation of a ZoneHandle and access to Isolate::Current(). R=srdjan@google.com, zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=38044

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -52 lines) Patch
M runtime/vm/compiler.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm64.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M runtime/vm/parser.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/stub_code_arm64_test.cc View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/stub_code_arm_test.cc View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/stub_code_ia32_test.cc View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/stub_code_mips_test.cc View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/stub_code_x64_test.cc View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
siva
6 years, 5 months ago (2014-07-02 21:42:40 UTC) #1
zra
lgtm
6 years, 5 months ago (2014-07-02 21:58:22 UTC) #2
srdjan
LGTM. I wonder if it would be more readable if "s/null_object/null_handle/"?
6 years, 5 months ago (2014-07-07 17:50:15 UTC) #3
siva
6 years, 5 months ago (2014-07-07 22:15:30 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as r38044 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698