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

Side by Side Diff: src/stub-cache.cc

Issue 188783003: Make maps in monomorphic IC stubs weak. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase, address comments Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-visiting-inl.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 } 1270 }
1271 } 1271 }
1272 1272
1273 1273
1274 Handle<Code> BaseLoadStoreStubCompiler::GetICCode(Code::Kind kind, 1274 Handle<Code> BaseLoadStoreStubCompiler::GetICCode(Code::Kind kind,
1275 Code::StubType type, 1275 Code::StubType type,
1276 Handle<Name> name, 1276 Handle<Name> name,
1277 InlineCacheState state) { 1277 InlineCacheState state) {
1278 Code::Flags flags = Code::ComputeFlags(kind, state, extra_state(), type); 1278 Code::Flags flags = Code::ComputeFlags(kind, state, extra_state(), type);
1279 Handle<Code> code = GetCodeWithFlags(flags, name); 1279 Handle<Code> code = GetCodeWithFlags(flags, name);
1280 IC::RegisterWeakMapDependency(code);
1280 PROFILE(isolate(), CodeCreateEvent(log_kind(code), *code, *name)); 1281 PROFILE(isolate(), CodeCreateEvent(log_kind(code), *code, *name));
1281 JitEvent(name, code); 1282 JitEvent(name, code);
1282 return code; 1283 return code;
1283 } 1284 }
1284 1285
1285 1286
1286 Handle<Code> BaseLoadStoreStubCompiler::GetCode(Code::Kind kind, 1287 Handle<Code> BaseLoadStoreStubCompiler::GetCode(Code::Kind kind,
1287 Code::StubType type, 1288 Code::StubType type,
1288 Handle<Name> name) { 1289 Handle<Name> name) {
1289 ASSERT_EQ(kNoExtraICState, extra_state()); 1290 ASSERT_EQ(kNoExtraICState, extra_state());
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 Handle<FunctionTemplateInfo>( 1499 Handle<FunctionTemplateInfo>(
1499 FunctionTemplateInfo::cast(signature->receiver())); 1500 FunctionTemplateInfo::cast(signature->receiver()));
1500 } 1501 }
1501 } 1502 }
1502 1503
1503 is_simple_api_call_ = true; 1504 is_simple_api_call_ = true;
1504 } 1505 }
1505 1506
1506 1507
1507 } } // namespace v8::internal 1508 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-visiting-inl.h ('k') | test/cctest/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698