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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 172233003: Clean up weak objects in optimized code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments and fix whitespace Created 6 years, 10 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/arm/lithium-codegen-arm.cc ('k') | src/lithium-codegen.h » ('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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 GenerateDeferredCode() && 96 GenerateDeferredCode() &&
97 GenerateJumpTable() && 97 GenerateJumpTable() &&
98 GenerateSafepointTable(); 98 GenerateSafepointTable();
99 } 99 }
100 100
101 101
102 void LCodeGen::FinishCode(Handle<Code> code) { 102 void LCodeGen::FinishCode(Handle<Code> code) {
103 ASSERT(is_done()); 103 ASSERT(is_done());
104 code->set_stack_slots(GetStackSlotCount()); 104 code->set_stack_slots(GetStackSlotCount());
105 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); 105 code->set_safepoint_table_offset(safepoints_.GetCodeOffset());
106 RegisterDependentCodeForEmbeddedMaps(code); 106 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code);
107 PopulateDeoptimizationData(code); 107 PopulateDeoptimizationData(code);
108 if (!info()->IsStub()) { 108 if (!info()->IsStub()) {
109 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code); 109 Deoptimizer::EnsureRelocSpaceForLazyDeoptimization(code);
110 } 110 }
111 info()->CommitDependencies(code); 111 info()->CommitDependencies(code);
112 } 112 }
113 113
114 114
115 void LCodeGen::Abort(BailoutReason reason) { 115 void LCodeGen::Abort(BailoutReason reason) {
116 info()->set_bailout_reason(reason); 116 info()->set_bailout_reason(reason);
(...skipping 6138 matching lines...) Expand 10 before | Expand all | Expand 10 after
6255 FixedArray::kHeaderSize - kPointerSize)); 6255 FixedArray::kHeaderSize - kPointerSize));
6256 __ bind(&done); 6256 __ bind(&done);
6257 } 6257 }
6258 6258
6259 6259
6260 #undef __ 6260 #undef __
6261 6261
6262 } } // namespace v8::internal 6262 } } // namespace v8::internal
6263 6263
6264 #endif // V8_TARGET_ARCH_IA32 6264 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/lithium-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698