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

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

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 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/ia32/stub-cache-ia32.cc ('k') | src/ia32/virtual-frame-ia32.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 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // Call load IC. Name and receiver are found on top of the frame. 362 // Call load IC. Name and receiver are found on top of the frame.
363 // Both are dropped. 363 // Both are dropped.
364 Result CallLoadIC(RelocInfo::Mode mode); 364 Result CallLoadIC(RelocInfo::Mode mode);
365 365
366 // Call keyed load IC. Key and receiver are found on top of the 366 // Call keyed load IC. Key and receiver are found on top of the
367 // frame. Both are dropped. 367 // frame. Both are dropped.
368 Result CallKeyedLoadIC(RelocInfo::Mode mode); 368 Result CallKeyedLoadIC(RelocInfo::Mode mode);
369 369
370 // Call store IC. If the load is contextual, value is found on top of the 370 // Call store IC. If the load is contextual, value is found on top of the
371 // frame. If not, value and receiver are on the frame. Both are dropped. 371 // frame. If not, value and receiver are on the frame. Both are dropped.
372 Result CallStoreIC(Handle<String> name, bool is_contextual); 372 Result CallStoreIC(Handle<String> name, bool is_contextual,
373 StrictModeFlag strict_mode);
373 374
374 // Call keyed store IC. Value, key, and receiver are found on top 375 // Call keyed store IC. Value, key, and receiver are found on top
375 // of the frame. All three are dropped. 376 // of the frame. All three are dropped.
376 Result CallKeyedStoreIC(); 377 Result CallKeyedStoreIC(StrictModeFlag strict_mode);
377 378
378 // Call call IC. Function name, arguments, and receiver are found on top 379 // Call call IC. Function name, arguments, and receiver are found on top
379 // of the frame and dropped by the call. The argument count does not 380 // of the frame and dropped by the call. The argument count does not
380 // include the receiver. 381 // include the receiver.
381 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); 382 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting);
382 383
383 // Call keyed call IC. Same calling convention as CallCallIC. 384 // Call keyed call IC. Same calling convention as CallCallIC.
384 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); 385 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting);
385 386
386 // Allocate and call JS function as constructor. Arguments, 387 // Allocate and call JS function as constructor. Arguments,
(...skipping 28 matching lines...) Expand all
415 416
416 // Push an element on top of the expression stack and emit a 417 // Push an element on top of the expression stack and emit a
417 // corresponding push instruction. 418 // corresponding push instruction.
418 void EmitPush(Register reg, 419 void EmitPush(Register reg,
419 TypeInfo info = TypeInfo::Unknown()); 420 TypeInfo info = TypeInfo::Unknown());
420 void EmitPush(Operand operand, 421 void EmitPush(Operand operand,
421 TypeInfo info = TypeInfo::Unknown()); 422 TypeInfo info = TypeInfo::Unknown());
422 void EmitPush(Immediate immediate, 423 void EmitPush(Immediate immediate,
423 TypeInfo info = TypeInfo::Unknown()); 424 TypeInfo info = TypeInfo::Unknown());
424 425
426 inline bool ConstantPoolOverflowed();
427
425 // Push an element on the virtual frame. 428 // Push an element on the virtual frame.
429 void Push(Handle<Object> value);
426 inline void Push(Register reg, TypeInfo info = TypeInfo::Unknown()); 430 inline void Push(Register reg, TypeInfo info = TypeInfo::Unknown());
427 inline void Push(Handle<Object> value);
428 inline void Push(Smi* value); 431 inline void Push(Smi* value);
429 432
430 void PushUntaggedElement(Handle<Object> value); 433 void PushUntaggedElement(Handle<Object> value);
431 434
432 // Pushing a result invalidates it (its contents become owned by the 435 // Pushing a result invalidates it (its contents become owned by the
433 // frame). 436 // frame).
434 void Push(Result* result) { 437 void Push(Result* result) {
435 // This assert will trigger if you try to push the same value twice. 438 // This assert will trigger if you try to push the same value twice.
436 ASSERT(result->is_valid()); 439 ASSERT(result->is_valid());
437 if (result->is_register()) { 440 if (result->is_register()) {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 inline bool Equals(VirtualFrame* other); 641 inline bool Equals(VirtualFrame* other);
639 642
640 // Classes that need raw access to the elements_ array. 643 // Classes that need raw access to the elements_ array.
641 friend class FrameRegisterState; 644 friend class FrameRegisterState;
642 friend class JumpTarget; 645 friend class JumpTarget;
643 }; 646 };
644 647
645 } } // namespace v8::internal 648 } } // namespace v8::internal
646 649
647 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_ 650 #endif // V8_IA32_VIRTUAL_FRAME_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ia32/virtual-frame-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698