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

Side by Side Diff: src/mips/codegen-mips.cc

Issue 844006: Merge changes up to V8 version 2.1.3 into the partial snapshots (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 years, 9 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/mips/codegen-mips.h ('k') | src/mips/fast-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 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 function_return_is_shadowed_(false) { 74 function_return_is_shadowed_(false) {
75 } 75 }
76 76
77 77
78 // Calling conventions: 78 // Calling conventions:
79 // s8_fp: caller's frame pointer 79 // s8_fp: caller's frame pointer
80 // sp: stack pointer 80 // sp: stack pointer
81 // a1: called JS function 81 // a1: called JS function
82 // cp: callee's context 82 // cp: callee's context
83 83
84 void CodeGenerator::Generate(CompilationInfo* info, Mode mode) { 84 void CodeGenerator::Generate(CompilationInfo* infomode) {
85 UNIMPLEMENTED_MIPS(); 85 UNIMPLEMENTED_MIPS();
86 } 86 }
87 87
88 88
89 void CodeGenerator::VisitStatements(ZoneList<Statement*>* statements) { 89 void CodeGenerator::VisitStatements(ZoneList<Statement*>* statements) {
90 UNIMPLEMENTED_MIPS(); 90 UNIMPLEMENTED_MIPS();
91 } 91 }
92 92
93 93
94 void CodeGenerator::VisitBlock(Block* node) { 94 void CodeGenerator::VisitBlock(Block* node) {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 void CodeGenerator::GenerateLog(ZoneList<Expression*>* args) { 285 void CodeGenerator::GenerateLog(ZoneList<Expression*>* args) {
286 UNIMPLEMENTED_MIPS(); 286 UNIMPLEMENTED_MIPS();
287 } 287 }
288 288
289 289
290 void CodeGenerator::GenerateIsNonNegativeSmi(ZoneList<Expression*>* args) { 290 void CodeGenerator::GenerateIsNonNegativeSmi(ZoneList<Expression*>* args) {
291 UNIMPLEMENTED_MIPS(); 291 UNIMPLEMENTED_MIPS();
292 } 292 }
293 293
294 294
295 void CodeGenerator::GenerateMathPow(ZoneList<Expression*>* args) {
296 UNIMPLEMENTED_MIPS();
297 }
298
299
300 void CodeGenerator::GenerateMathSqrt(ZoneList<Expression*>* args) {
301 UNIMPLEMENTED_MIPS();
302 }
303
304
295 // This should generate code that performs a charCodeAt() call or returns 305 // This should generate code that performs a charCodeAt() call or returns
296 // undefined in order to trigger the slow case, Runtime_StringCharCodeAt. 306 // undefined in order to trigger the slow case, Runtime_StringCharCodeAt.
297 // It is not yet implemented on ARM, so it always goes to the slow case. 307 // It is not yet implemented on ARM, so it always goes to the slow case.
298 void CodeGenerator::GenerateFastCharCodeAt(ZoneList<Expression*>* args) { 308 void CodeGenerator::GenerateFastCharCodeAt(ZoneList<Expression*>* args) {
299 UNIMPLEMENTED_MIPS(); 309 UNIMPLEMENTED_MIPS();
300 } 310 }
301 311
302 312
313 void CodeGenerator::GenerateCharFromCode(ZoneList<Expression*>* args) {
314 UNIMPLEMENTED_MIPS();
315 }
316
317
303 void CodeGenerator::GenerateIsArray(ZoneList<Expression*>* args) { 318 void CodeGenerator::GenerateIsArray(ZoneList<Expression*>* args) {
304 UNIMPLEMENTED_MIPS(); 319 UNIMPLEMENTED_MIPS();
305 } 320 }
306 321
307 322
308 void CodeGenerator::GenerateIsRegExp(ZoneList<Expression*>* args) { 323 void CodeGenerator::GenerateIsRegExp(ZoneList<Expression*>* args) {
309 UNIMPLEMENTED_MIPS(); 324 UNIMPLEMENTED_MIPS();
310 } 325 }
311 326
312 327
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 __ break_(0x826); 465 __ break_(0x826);
451 } 466 }
452 467
453 void CEntryStub::Generate(MacroAssembler* masm) { 468 void CEntryStub::Generate(MacroAssembler* masm) {
454 UNIMPLEMENTED_MIPS(); 469 UNIMPLEMENTED_MIPS();
455 __ break_(0x831); 470 __ break_(0x831);
456 } 471 }
457 472
458 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) { 473 void JSEntryStub::GenerateBody(MacroAssembler* masm, bool is_construct) {
459 UNIMPLEMENTED_MIPS(); 474 UNIMPLEMENTED_MIPS();
475
476 // Save callee saved registers on the stack.
477 __ MultiPush(kCalleeSaved | ra.bit());
478
479 // ********** State **********
480 //
481 // * Registers:
482 // a0: entry_address
483 // a1: function
484 // a2: reveiver_pointer
485 // a3: argc
486 //
487 // * Stack:
488 // ---------------------------
489 // args
490 // ---------------------------
491 // 4 args slots
492 // ---------------------------
493 // callee saved registers + ra
494 // ---------------------------
495 //
496 // ***************************
497
498 __ break_(0x1234);
499
500 // Restore callee saved registers from the stack.
501 __ MultiPop(kCalleeSaved | ra.bit());
502
460 // Load a result. 503 // Load a result.
461 __ li(v0, Operand(0x1234)); 504 __ li(v0, Operand(0x1234));
462 __ jr(ra); 505 __ jr(ra);
463 // Return 506 // Return
464 __ nop(); 507 __ nop();
465 } 508 }
466 509
467 510
468 // This stub performs an instanceof, calling the builtin function if 511 // This stub performs an instanceof, calling the builtin function if
469 // necessary. Uses a1 for the object, a0 for the function that it may 512 // necessary. Uses a1 for the object, a0 for the function that it may
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 int CompareStub::MinorKey() { 544 int CompareStub::MinorKey() {
502 // Encode the two parameters in a unique 16 bit value. 545 // Encode the two parameters in a unique 16 bit value.
503 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); 546 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15));
504 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); 547 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0);
505 } 548 }
506 549
507 550
508 #undef __ 551 #undef __
509 552
510 } } // namespace v8::internal 553 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.h ('k') | src/mips/fast-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698