| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 RelocInfo::Mode rmode, | 448 RelocInfo::Mode rmode, |
| 449 int dropped_args) { | 449 int dropped_args) { |
| 450 int spilled_args = 0; | 450 int spilled_args = 0; |
| 451 switch (code->kind()) { | 451 switch (code->kind()) { |
| 452 case Code::CALL_IC: | 452 case Code::CALL_IC: |
| 453 spilled_args = dropped_args + 1; | 453 spilled_args = dropped_args + 1; |
| 454 break; | 454 break; |
| 455 case Code::FUNCTION: | 455 case Code::FUNCTION: |
| 456 spilled_args = dropped_args + 1; | 456 spilled_args = dropped_args + 1; |
| 457 break; | 457 break; |
| 458 #ifdef ARM |
| 458 case Code::KEYED_LOAD_IC: | 459 case Code::KEYED_LOAD_IC: |
| 459 ASSERT(dropped_args == 0); | 460 ASSERT(dropped_args == 0); |
| 460 spilled_args = 2; | 461 spilled_args = 2; |
| 461 break; | 462 break; |
| 463 #endif |
| 462 default: | 464 default: |
| 463 // The other types of code objects are called with values | 465 // The other types of code objects are called with values |
| 464 // in specific registers, and are handled in functions with | 466 // in specific registers, and are handled in functions with |
| 465 // a different signature. | 467 // a different signature. |
| 466 UNREACHABLE(); | 468 UNREACHABLE(); |
| 467 break; | 469 break; |
| 468 } | 470 } |
| 469 PrepareForCall(spilled_args, dropped_args); | 471 PrepareForCall(spilled_args, dropped_args); |
| 470 return RawCallCodeObject(code, rmode); | 472 return RawCallCodeObject(code, rmode); |
| 471 } | 473 } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 #endif | 545 #endif |
| 544 if (stack_pointer_ != other->stack_pointer_) return false; | 546 if (stack_pointer_ != other->stack_pointer_) return false; |
| 545 for (int i = 0; i < elements_.length(); i++) { | 547 for (int i = 0; i < elements_.length(); i++) { |
| 546 if (!elements_[i].Equals(other->elements_[i])) return false; | 548 if (!elements_[i].Equals(other->elements_[i])) return false; |
| 547 } | 549 } |
| 548 | 550 |
| 549 return true; | 551 return true; |
| 550 } | 552 } |
| 551 | 553 |
| 552 } } // namespace v8::internal | 554 } } // namespace v8::internal |
| OLD | NEW |