| OLD | NEW |
| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 CodeStubInterfaceDescriptor* descriptor) { | 90 CodeStubInterfaceDescriptor* descriptor) { |
| 91 static Register registers[] = { a0, a1 }; | 91 static Register registers[] = { a0, a1 }; |
| 92 descriptor->register_param_count_ = 2; | 92 descriptor->register_param_count_ = 2; |
| 93 descriptor->register_params_ = registers; | 93 descriptor->register_params_ = registers; |
| 94 Address entry = | 94 Address entry = |
| 95 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; | 95 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; |
| 96 descriptor->deoptimization_handler_ = FUNCTION_ADDR(entry); | 96 descriptor->deoptimization_handler_ = FUNCTION_ADDR(entry); |
| 97 } | 97 } |
| 98 | 98 |
| 99 | 99 |
| 100 void CompareNilICStub::InitializeInterfaceDescriptor( |
| 101 Isolate* isolate, |
| 102 CodeStubInterfaceDescriptor* descriptor) { |
| 103 static Register registers[] = { a0 }; |
| 104 descriptor->register_param_count_ = 1; |
| 105 descriptor->register_params_ = registers; |
| 106 descriptor->deoptimization_handler_ = |
| 107 FUNCTION_ADDR(CompareNilIC_Miss); |
| 108 descriptor->miss_handler_ = |
| 109 ExternalReference(IC_Utility(IC::kCompareNilIC_Miss), isolate); |
| 110 } |
| 111 |
| 112 |
| 100 static void InitializeArrayConstructorDescriptor(Isolate* isolate, | 113 static void InitializeArrayConstructorDescriptor(Isolate* isolate, |
| 101 CodeStubInterfaceDescriptor* descriptor) { | 114 CodeStubInterfaceDescriptor* descriptor) { |
| 102 // register state | 115 // register state |
| 103 // a1 -- constructor function | 116 // a1 -- constructor function |
| 104 // a2 -- type info cell with elements kind | 117 // a2 -- type info cell with elements kind |
| 105 // a0 -- number of arguments to the constructor function | 118 // a0 -- number of arguments to the constructor function |
| 106 static Register registers[] = { a1, a2 }; | 119 static Register registers[] = { a1, a2 }; |
| 107 descriptor->register_param_count_ = 2; | 120 descriptor->register_param_count_ = 2; |
| 108 // stack param count needs (constructor pointer, and single argument) | 121 // stack param count needs (constructor pointer, and single argument) |
| 109 descriptor->stack_parameter_count_ = &a0; | 122 descriptor->stack_parameter_count_ = &a0; |
| (...skipping 7437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7547 __ Pop(ra, t1, a1); | 7560 __ Pop(ra, t1, a1); |
| 7548 __ Ret(); | 7561 __ Ret(); |
| 7549 } | 7562 } |
| 7550 | 7563 |
| 7551 | 7564 |
| 7552 #undef __ | 7565 #undef __ |
| 7553 | 7566 |
| 7554 } } // namespace v8::internal | 7567 } } // namespace v8::internal |
| 7555 | 7568 |
| 7556 #endif // V8_TARGET_ARCH_MIPS | 7569 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |