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

Issue 58923002: - Avoid deep recursions when executing type tests. (Closed)

Created:
7 years, 1 month ago by Ivan Posva
Modified:
7 years, 1 month ago
Reviewers:
regis
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

- Avoid deep recursions when executing type tests. Committed: https://code.google.com/p/dart/source/detail?r=29873

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -124 lines) Patch
runtime/vm/object.h View 1 chunk +8 lines, -0 lines 0 comments Download
runtime/vm/object.cc View 1 chunk +146 lines, -124 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Ivan Posva
TBR
7 years, 1 month ago (2013-11-05 04:44:50 UTC) #1
Ivan Posva
Committed patchset #1 manually as r29873 (presubmit successful).
7 years, 1 month ago (2013-11-05 04:45:20 UTC) #2
Ivan Posva
This avoids running out of stack space on the Mac when running on the buildbot. ...
7 years, 1 month ago (2013-11-05 04:48:29 UTC) #3
regis
7 years, 1 month ago (2013-11-05 18:17:40 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/58923002/diff/1/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://codereview.chromium.org/58923002/diff/1/runtime/vm/object.cc#newcode2740
runtime/vm/object.cc:2740: bool Class::TypeTestNonRecursive(
Why do you need a new function that is forwarded to from the old one?

Also 'thsi' is a terrible name :-)

I would keep the old function and declare a local cls instead of thsi:

Class& cls = Class::Handle(raw());

You just need to rename the local cls below to super_cls.

Powered by Google App Engine
This is Rietveld 408576698