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

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

Issue 10824013: Fix static initializer check. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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/full-codegen.h ('k') | src/mips/full-codegen-mips.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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) { 318 if (info_->ShouldSelfOptimize() && !FLAG_retry_self_opt) {
319 // Self-optimization is a one-off thing: if it fails, don't try again. 319 // Self-optimization is a one-off thing: if it fails, don't try again.
320 reset_value = Smi::kMaxValue; 320 reset_value = Smi::kMaxValue;
321 } 321 }
322 __ mov(ebx, Immediate(profiling_counter_)); 322 __ mov(ebx, Immediate(profiling_counter_));
323 __ mov(FieldOperand(ebx, JSGlobalPropertyCell::kValueOffset), 323 __ mov(FieldOperand(ebx, JSGlobalPropertyCell::kValueOffset),
324 Immediate(Smi::FromInt(reset_value))); 324 Immediate(Smi::FromInt(reset_value)));
325 } 325 }
326 326
327 327
328 const int FullCodeGenerator::kMaxBackEdgeWeight = 127;
329 const int FullCodeGenerator::kBackEdgeDistanceUnit = 100;
330
331
332 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt, 328 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt,
333 Label* back_edge_target) { 329 Label* back_edge_target) {
334 Comment cmnt(masm_, "[ Stack check"); 330 Comment cmnt(masm_, "[ Stack check");
335 Label ok; 331 Label ok;
336 332
337 if (FLAG_count_based_interrupts) { 333 if (FLAG_count_based_interrupts) {
338 int weight = 1; 334 int weight = 1;
339 if (FLAG_weighted_back_edges) { 335 if (FLAG_weighted_back_edges) {
340 ASSERT(back_edge_target->is_bound()); 336 ASSERT(back_edge_target->is_bound());
341 int distance = masm_->SizeOfCodeGeneratedSince(back_edge_target); 337 int distance = masm_->SizeOfCodeGeneratedSince(back_edge_target);
(...skipping 4210 matching lines...) Expand 10 before | Expand all | Expand 10 after
4552 *stack_depth = 0; 4548 *stack_depth = 0;
4553 *context_length = 0; 4549 *context_length = 0;
4554 return previous_; 4550 return previous_;
4555 } 4551 }
4556 4552
4557 #undef __ 4553 #undef __
4558 4554
4559 } } // namespace v8::internal 4555 } } // namespace v8::internal
4560 4556
4561 #endif // V8_TARGET_ARCH_IA32 4557 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698