| 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 670 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   681                                               JSFunction* function, |   681                                               JSFunction* function, | 
|   682                                               String* name, |   682                                               String* name, | 
|   683                                               StubCompiler::CheckType check) { |   683                                               StubCompiler::CheckType check) { | 
|   684   // ----------- S t a t e ------------- |   684   // ----------- S t a t e ------------- | 
|   685   // ----------------------------------- |   685   // ----------------------------------- | 
|   686   // rsp[0] return address |   686   // rsp[0] return address | 
|   687   // rsp[8] argument argc |   687   // rsp[8] argument argc | 
|   688   // rsp[16] argument argc - 1 |   688   // rsp[16] argument argc - 1 | 
|   689   // ... |   689   // ... | 
|   690   // rsp[argc * 8] argument 1 |   690   // rsp[argc * 8] argument 1 | 
|   691   // rsp[(argc + 1) * 8] argument 0 = reciever |   691   // rsp[(argc + 1) * 8] argument 0 = receiver | 
|   692   // rsp[(argc + 2) * 8] function name |   692   // rsp[(argc + 2) * 8] function name | 
|   693  |   693  | 
|   694   Label miss; |   694   Label miss; | 
|   695  |   695  | 
|   696   // Get the receiver from the stack. |   696   // Get the receiver from the stack. | 
|   697   const int argc = arguments().immediate(); |   697   const int argc = arguments().immediate(); | 
|   698   __ movq(rdx, Operand(rsp, (argc + 1) * kPointerSize)); |   698   __ movq(rdx, Operand(rsp, (argc + 1) * kPointerSize)); | 
|   699  |   699  | 
|   700   // Check that the receiver isn't a smi. |   700   // Check that the receiver isn't a smi. | 
|   701   if (check != NUMBER_CHECK) { |   701   if (check != NUMBER_CHECK) { | 
| (...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1890   __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |  1890   __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 
|  1891  |  1891  | 
|  1892   // Return the generated code. |  1892   // Return the generated code. | 
|  1893   return GetCode(); |  1893   return GetCode(); | 
|  1894 } |  1894 } | 
|  1895  |  1895  | 
|  1896  |  1896  | 
|  1897 #undef __ |  1897 #undef __ | 
|  1898  |  1898  | 
|  1899 } }  // namespace v8::internal |  1899 } }  // namespace v8::internal | 
| OLD | NEW |