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

Side by Side Diff: src/x64/virtual-frame-x64.h

Issue 146077: Removed static type inference and add a dynamic test for string addition. (Closed)
Patch Set: And it lints too. Created 11 years, 6 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
OLDNEW
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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 void EmitPop(Register reg); 371 void EmitPop(Register reg);
372 void EmitPop(const Operand& operand); 372 void EmitPop(const Operand& operand);
373 373
374 // Push an element on top of the expression stack and emit a 374 // Push an element on top of the expression stack and emit a
375 // corresponding push instruction. 375 // corresponding push instruction.
376 void EmitPush(Register reg); 376 void EmitPush(Register reg);
377 void EmitPush(const Operand& operand); 377 void EmitPush(const Operand& operand);
378 void EmitPush(Immediate immediate); 378 void EmitPush(Immediate immediate);
379 379
380 // Push an element on the virtual frame. 380 // Push an element on the virtual frame.
381 void Push(Register reg, StaticType static_type = StaticType()); 381 void Push(Register reg);
382 void Push(Handle<Object> value); 382 void Push(Handle<Object> value);
383 void Push(Smi* value) { Push(Handle<Object>(value)); } 383 void Push(Smi* value) { Push(Handle<Object>(value)); }
384 384
385 // Pushing a result invalidates it (its contents become owned by the 385 // Pushing a result invalidates it (its contents become owned by the
386 // frame). 386 // frame).
387 void Push(Result* result) { 387 void Push(Result* result) {
388 if (result->is_register()) { 388 if (result->is_register()) {
389 Push(result->reg(), result->static_type()); 389 Push(result->reg());
390 } else { 390 } else {
391 ASSERT(result->is_constant()); 391 ASSERT(result->is_constant());
392 Push(result->handle()); 392 Push(result->handle());
393 } 393 }
394 result->Unuse(); 394 result->Unuse();
395 } 395 }
396 396
397 // Nip removes zero or more elements from immediately below the top 397 // Nip removes zero or more elements from immediately below the top
398 // of the frame, leaving the previous top-of-frame value on top of 398 // of the frame, leaving the previous top-of-frame value on top of
399 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). 399 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x).
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 544
545 // Classes that need raw access to the elements_ array. 545 // Classes that need raw access to the elements_ array.
546 friend class DeferredCode; 546 friend class DeferredCode;
547 friend class JumpTarget; 547 friend class JumpTarget;
548 }; 548 };
549 549
550 550
551 } } // namespace v8::internal 551 } } // namespace v8::internal
552 552
553 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ 553 #endif // V8_X64_VIRTUAL_FRAME_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698