| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 Jump(); // May emit merge code here. | 407 Jump(); // May emit merge code here. |
| 408 fall_through.Bind(); | 408 fall_through.Bind(); |
| 409 } else { | 409 } else { |
| 410 DoBranch(cc, hint); | 410 DoBranch(cc, hint); |
| 411 } | 411 } |
| 412 } | 412 } |
| 413 | 413 |
| 414 | 414 |
| 415 DeferredCode::DeferredCode() | 415 DeferredCode::DeferredCode() |
| 416 : masm_(CodeGeneratorScope::Current()->masm()), | 416 : masm_(CodeGeneratorScope::Current()->masm()), |
| 417 statement_position_(masm_->current_statement_position()), | 417 statement_position_(masm_->positions_recorder()-> |
| 418 position_(masm_->current_position()), | 418 current_statement_position()), |
| 419 position_(masm_->positions_recorder()->current_position()), |
| 419 frame_state_(CodeGeneratorScope::Current()->frame()) { | 420 frame_state_(CodeGeneratorScope::Current()->frame()) { |
| 420 ASSERT(statement_position_ != RelocInfo::kNoPosition); | 421 ASSERT(statement_position_ != RelocInfo::kNoPosition); |
| 421 ASSERT(position_ != RelocInfo::kNoPosition); | 422 ASSERT(position_ != RelocInfo::kNoPosition); |
| 422 | 423 |
| 423 CodeGeneratorScope::Current()->AddDeferred(this); | 424 CodeGeneratorScope::Current()->AddDeferred(this); |
| 424 #ifdef DEBUG | 425 #ifdef DEBUG |
| 425 comment_ = ""; | 426 comment_ = ""; |
| 426 #endif | 427 #endif |
| 427 } | 428 } |
| 428 | 429 |
| 429 } } // namespace v8::internal | 430 } } // namespace v8::internal |
| OLD | NEW |