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

Issue 11230034: Fix super ==: Test first for null before call inf super ==. (Closed)

Created:
8 years, 2 months ago by srdjan
Modified:
8 years, 2 months ago
Reviewers:
hausner
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Fix super ==: Test first for null before call inf super ==. Committed: https://code.google.com/p/dart/source/detail?r=13907

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -6 lines) Patch
M runtime/vm/flow_graph_compiler_ia32.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 1 chunk +6 lines, -0 lines 1 comment Download
M runtime/vm/object.h View 1 chunk +1 line, -3 lines 0 comments Download
M runtime/vm/object.cc View 1 chunk +11 lines, -0 lines 2 comments Download
M tests/co19/co19-runtime.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
8 years, 2 months ago (2012-10-22 19:02:48 UTC) #1
hausner
LGTM. I'm happy to do the == as symbol part after you check this in ...
8 years, 2 months ago (2012-10-22 20:00:29 UTC) #2
srdjan
8 years, 2 months ago (2012-10-22 20:30:51 UTC) #3
https://codereview.chromium.org/11230034/diff/8002/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://codereview.chromium.org/11230034/diff/8002/runtime/vm/object.cc#newco...
runtime/vm/object.cc:3372: const String& equality_name =
String::Handle(Symbols::New("=="));
On 2012/10/22 20:00:29, hausner wrote:
> I expect this will be called quite often. It might be beneficial to allocate
the
> string "==" in the symbol table instead of creating a new one each time (and
> then throwing it away during canonicalization).

Symbols::New does not create new symbol each time, but returns one if it already
exists in the symbol table.

Powered by Google App Engine
This is Rietveld 408576698