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

Unified Diff: src/stub-cache.cc

Issue 1605032: Patch trunk to version 2.2.3.1, reverting change 4401. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/stub-cache.h ('k') | src/version.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/stub-cache.cc
===================================================================
--- src/stub-cache.cc (revision 4416)
+++ src/stub-cache.cc (working copy)
@@ -93,28 +93,6 @@
}
-Object* StubCache::ComputeLoadNonexistent(String* name, JSObject* receiver) {
- // The code stub for loading nonexistent properties can be reused
- // for all names, so we use the empty_string as the name in the map
- // code cache.
- Code::Flags flags =
- Code::ComputeMonomorphicFlags(Code::LOAD_IC, NONEXISTENT);
- Object* code = receiver->map()->FindInCodeCache(Heap::empty_string(), flags);
- if (code->IsUndefined()) {
- LoadStubCompiler compiler;
- code = compiler.CompileLoadNonexistent(receiver);
- if (code->IsFailure()) return code;
- PROFILE(CodeCreateEvent(Logger::LOAD_IC_TAG,
- Code::cast(code),
- Heap::empty_string()));
- Object* result = receiver->map()->UpdateCodeCache(Heap::empty_string(),
- Code::cast(code));
- if (result->IsFailure()) return result;
- }
- return Set(name, receiver->map(), Code::cast(code));
-}
-
-
Object* StubCache::ComputeLoadField(String* name,
JSObject* receiver,
JSObject* holder,
« no previous file with comments | « src/stub-cache.h ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698