OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |