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

Side by Side Diff: src/x64/virtual-frame-x64.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/x64/stub-cache-x64.cc ('k') | src/x64/virtual-frame-x64.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 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // Call load IC. Name and receiver are found on top of the frame. 336 // Call load IC. Name and receiver are found on top of the frame.
337 // Both are dropped. 337 // Both are dropped.
338 Result CallLoadIC(RelocInfo::Mode mode); 338 Result CallLoadIC(RelocInfo::Mode mode);
339 339
340 // Call keyed load IC. Key and receiver are found on top of the 340 // Call keyed load IC. Key and receiver are found on top of the
341 // frame. Both are dropped. 341 // frame. Both are dropped.
342 Result CallKeyedLoadIC(RelocInfo::Mode mode); 342 Result CallKeyedLoadIC(RelocInfo::Mode mode);
343 343
344 // Call store IC. If the load is contextual, value is found on top of the 344 // Call store IC. If the load is contextual, value is found on top of the
345 // frame. If not, value and receiver are on the frame. Both are dropped. 345 // frame. If not, value and receiver are on the frame. Both are dropped.
346 Result CallStoreIC(Handle<String> name, bool is_contextual); 346 Result CallStoreIC(Handle<String> name, bool is_contextual,
347 StrictModeFlag strict_mode);
347 348
348 // Call keyed store IC. Value, key, and receiver are found on top 349 // Call keyed store IC. Value, key, and receiver are found on top
349 Result CallKeyedStoreIC(); 350 Result CallKeyedStoreIC(StrictModeFlag strict_mode);
350 351
351 // Call call IC. Function name, arguments, and receiver are found on top 352 // Call call IC. Function name, arguments, and receiver are found on top
352 // of the frame and dropped by the call. 353 // of the frame and dropped by the call.
353 // The argument count does not include the receiver. 354 // The argument count does not include the receiver.
354 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); 355 Result CallCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting);
355 356
356 // Call keyed call IC. Same calling convention as CallCallIC. 357 // Call keyed call IC. Same calling convention as CallCallIC.
357 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting); 358 Result CallKeyedCallIC(RelocInfo::Mode mode, int arg_count, int loop_nesting);
358 359
359 // Allocate and call JS function as constructor. Arguments, 360 // Allocate and call JS function as constructor. Arguments,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 void EmitPush(const Operand& operand, 397 void EmitPush(const Operand& operand,
397 TypeInfo info = TypeInfo::Unknown()); 398 TypeInfo info = TypeInfo::Unknown());
398 void EmitPush(Heap::RootListIndex index, 399 void EmitPush(Heap::RootListIndex index,
399 TypeInfo info = TypeInfo::Unknown()); 400 TypeInfo info = TypeInfo::Unknown());
400 void EmitPush(Immediate immediate, 401 void EmitPush(Immediate immediate,
401 TypeInfo info = TypeInfo::Unknown()); 402 TypeInfo info = TypeInfo::Unknown());
402 void EmitPush(Smi* value); 403 void EmitPush(Smi* value);
403 // Uses kScratchRegister, emits appropriate relocation info. 404 // Uses kScratchRegister, emits appropriate relocation info.
404 void EmitPush(Handle<Object> value); 405 void EmitPush(Handle<Object> value);
405 406
407 inline bool ConstantPoolOverflowed();
408
406 // Push an element on the virtual frame. 409 // Push an element on the virtual frame.
410 void Push(Handle<Object> value);
407 inline void Push(Register reg, TypeInfo info = TypeInfo::Unknown()); 411 inline void Push(Register reg, TypeInfo info = TypeInfo::Unknown());
408 inline void Push(Handle<Object> value);
409 inline void Push(Smi* value); 412 inline void Push(Smi* value);
410 413
411 // Pushing a result invalidates it (its contents become owned by the 414 // Pushing a result invalidates it (its contents become owned by the
412 // frame). 415 // frame).
413 void Push(Result* result) { 416 void Push(Result* result) {
414 if (result->is_register()) { 417 if (result->is_register()) {
415 Push(result->reg(), result->type_info()); 418 Push(result->reg(), result->type_info());
416 } else { 419 } else {
417 ASSERT(result->is_constant()); 420 ASSERT(result->is_constant());
418 Push(result->handle()); 421 Push(result->handle());
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 588
586 // Classes that need raw access to the elements_ array. 589 // Classes that need raw access to the elements_ array.
587 friend class FrameRegisterState; 590 friend class FrameRegisterState;
588 friend class JumpTarget; 591 friend class JumpTarget;
589 }; 592 };
590 593
591 594
592 } } // namespace v8::internal 595 } } // namespace v8::internal
593 596
594 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ 597 #endif // V8_X64_VIRTUAL_FRAME_X64_H_
OLDNEW
« no previous file with comments | « src/x64/stub-cache-x64.cc ('k') | src/x64/virtual-frame-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698