Skip to content
This repository has been archived by the owner on Dec 23, 2021. It is now read-only.

Commit

Permalink
GS/S api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Oct 24, 2012
1 parent 3d06d9c commit 7e51019
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/maglev/reflection/core_ext/thread.rb
Expand Up @@ -13,7 +13,8 @@ class Thread
# Remove all frames above [Fixnum]
primitive '__trim_stack_to_level', '_trimStackToLevel:'
# Change temporary at level to value
primitive '__frame_at_temp_named_put', '_frameAt:tempNamed:put:'
primitive '__frame_at_temp_at_put', '_frameAt:tempAt:put:'
primitive '__frame_at_offset_of_temp_named', '_frameAt:offsetOfTempNamed:'
# => Array
# with:
# 1 gsMethod
Expand All @@ -33,7 +34,7 @@ class Thread
primitive 'convert_to_persistable_state', "convertToPersistableState"
primitive 'convert_to_runnable_state', 'convertToRunnableState'
primitive '__ar_stack', 'arStack'
primitive '__client_data', '_clientData'
primitive '__client_data', 'clientData'
# Private. Returns an Array describing the specified level in the receiver.
# aLevel == 1 is top of stack. If aLevel is less than 1 or greater than
# stackDepth, returns nil.
Expand Down Expand Up @@ -62,6 +63,12 @@ class Thread

class_primitive '__installPartialContinuation_atLevel_value', 'installPartialContinuation:atLevel:value:'
class_primitive '__partialContinuationFromLevel_to', 'partialContinuationFromLevel:to:'

# Re-add behavior which was removed in GS 3.1.0.1
def __frame_at_temp_named_put(frameidx, tempname, value)
offset = __frame_at_offset_of_temp_named(frameidx, tempname)
__frame_at_temp_at_put(frameidx, offset, value)
end
end

# require 'maglev/objectlog'
Expand Down

0 comments on commit 7e51019

Please sign in to comment.