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

Side by Side Diff: src/deoptimizer.cc

Issue 13470008: Fix CopyBytes to accept size_t for num_bytes (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 CodeDesc desc; 2176 CodeDesc desc;
2177 masm.GetCode(&desc); 2177 masm.GetCode(&desc);
2178 ASSERT(!RelocInfo::RequiresRelocation(desc)); 2178 ASSERT(!RelocInfo::RequiresRelocation(desc));
2179 2179
2180 MemoryChunk* chunk = (type == EAGER) 2180 MemoryChunk* chunk = (type == EAGER)
2181 ? data->eager_deoptimization_entry_code_ 2181 ? data->eager_deoptimization_entry_code_
2182 : data->lazy_deoptimization_entry_code_; 2182 : data->lazy_deoptimization_entry_code_;
2183 ASSERT(static_cast<int>(Deoptimizer::GetMaxDeoptTableSize()) >= 2183 ASSERT(static_cast<int>(Deoptimizer::GetMaxDeoptTableSize()) >=
2184 desc.instr_size); 2184 desc.instr_size);
2185 chunk->CommitArea(desc.instr_size); 2185 chunk->CommitArea(desc.instr_size);
2186 CopyBytes(chunk->area_start(), desc.buffer, desc.instr_size); 2186 CopyBytes(chunk->area_start(), desc.buffer,
2187 static_cast<size_t>(desc.instr_size));
2187 CPU::FlushICache(chunk->area_start(), desc.instr_size); 2188 CPU::FlushICache(chunk->area_start(), desc.instr_size);
2188 2189
2189 if (type == EAGER) { 2190 if (type == EAGER) {
2190 data->eager_deoptimization_entry_code_entries_ = entry_count; 2191 data->eager_deoptimization_entry_code_entries_ = entry_count;
2191 } else { 2192 } else {
2192 data->lazy_deoptimization_entry_code_entries_ = entry_count; 2193 data->lazy_deoptimization_entry_code_entries_ = entry_count;
2193 } 2194 }
2194 } 2195 }
2195 2196
2196 2197
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
2725 2726
2726 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 2727 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
2727 v->VisitPointer(BitCast<Object**>(&function_)); 2728 v->VisitPointer(BitCast<Object**>(&function_));
2728 v->VisitPointers(parameters_, parameters_ + parameters_count_); 2729 v->VisitPointers(parameters_, parameters_ + parameters_count_);
2729 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 2730 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
2730 } 2731 }
2731 2732
2732 #endif // ENABLE_DEBUGGER_SUPPORT 2733 #endif // ENABLE_DEBUGGER_SUPPORT
2733 2734
2734 } } // namespace v8::internal 2735 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698