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

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

Issue 524059: Speed up compares with characters ie single-character strings.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 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/ia32/ic-ia32.cc ('k') | src/objects.h » ('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 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // Push an element on the virtual frame. 388 // Push an element on the virtual frame.
389 void Push(Register reg); 389 void Push(Register reg);
390 void Push(Handle<Object> value); 390 void Push(Handle<Object> value);
391 void Push(Smi* value) { 391 void Push(Smi* value) {
392 Push(Handle<Object> (value)); 392 Push(Handle<Object> (value));
393 } 393 }
394 394
395 // Pushing a result invalidates it (its contents become owned by the 395 // Pushing a result invalidates it (its contents become owned by the
396 // frame). 396 // frame).
397 void Push(Result* result) { 397 void Push(Result* result) {
398 // This assert will trigger if you try to push the same value twice.
399 ASSERT(result->is_valid());
398 if (result->is_register()) { 400 if (result->is_register()) {
399 Push(result->reg()); 401 Push(result->reg());
400 } else { 402 } else {
401 ASSERT(result->is_constant()); 403 ASSERT(result->is_constant());
402 Push(result->handle()); 404 Push(result->handle());
403 } 405 }
404 result->Unuse(); 406 result->Unuse();
405 } 407 }
406 408
407 // Nip removes zero or more elements from immediately below the top 409 // Nip removes zero or more elements from immediately below the top
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 bool Equals(VirtualFrame* other); 571 bool Equals(VirtualFrame* other);
570 572
571 // Classes that need raw access to the elements_ array. 573 // Classes that need raw access to the elements_ array.
572 friend class DeferredCode; 574 friend class DeferredCode;
573 friend class JumpTarget; 575 friend class JumpTarget;
574 }; 576 };
575 577
576 } } // namespace v8::internal 578 } } // namespace v8::internal
577 579
578 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ 580 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698